Skip to content

Commit

Permalink
fix: correct scene3 camera path
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Jan 20, 2024
1 parent 8301a8f commit 56ea346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/common.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export abstract class CommonConfig {
static readonly ASSET_DIR = "/";
static readonly GSAP_ANIMATION_DURATION = 2;
static readonly GSAP_ANIMATION_DURATION = 1.4;
static readonly GSAP_ANIMATION_EASE =
"M0,0 C0.001,0.001 0.002,0.003 0.003,0.004 0.142,0.482 0.284,0.75 0.338,0.836 0.388,0.924 0.504,1 1,1";
static readonly DEBUG = (() => {
Expand Down
8 changes: 4 additions & 4 deletions src/experiences/home/world/scene-3.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ export class Scene3Component extends SceneComponentBlueprint {
enabledTheta: false,
},
target: {
x: { min: -3, max: 3 },
y: { min: 0, max: 3 },
z: { min: -3, max: 3 },
x: { min: -1.5, max: 1.5 },
y: { min: 0, max: 1.5 },
z: { min: -1.5, max: 1.5 },
enabled: true,
},
};

public cameraPath = new CatmullRomCurve3(
[
new Vector3(5.8, 2.8, -4.6),
new Vector3(4.6, 4.2, 4.6),
new Vector3(5, 4.2, 5),
new Vector3(-5.3, 2.2, 4.6),
new Vector3(-4.6, 2, -5.3),
new Vector3(4.2, 2.7, -5),
Expand Down

0 comments on commit 56ea346

Please sign in to comment.