Skip to content

Commit

Permalink
refactor: last changes to camera initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
iivvaannxx committed Apr 6, 2024
1 parent 3328dd8 commit 5db488d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/experience/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export class MyRoomScene extends Scene {

// We'll be using the two camera modes for this scene.
const camera = new SimpleCamera({
perspective: [60, aspect, near, far]
perspective: [50, aspect, near, far]
});

const handler = camera.getResizeHandler(this.renderer);
Expand Down Expand Up @@ -337,8 +337,8 @@ export class MyRoomScene extends Scene {
controls.smoothTime = 0.325;
controls.draggingSmoothTime = 0.15;
controls.truckSpeed = 1.6;
controls.minDistance = 0.25;
controls.maxDistance = 5;
controls.minDistance = 0.65;
controls.maxDistance = 5.5;

// Initial camera placement.
controls.setLookAt(-5, 5, 5, 0, 0.75, 0);
Expand Down

0 comments on commit 5db488d

Please sign in to comment.