Skip to content

Commit

Permalink
Improve CameraControl dollying through objects #469
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Nov 13, 2020
1 parent 5a68c89 commit 49fc024
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/viewer/scene/CameraControl/CameraControl.js
Expand Up @@ -656,7 +656,7 @@ class CameraControl extends Component {
touchDollyRate: 0.05,
dollyInertia: 0,
dollyProximityThreshold: 30.0,
dollyMinSpeed: 0.01
dollyMinSpeed: 0.06
};

// Current runtime state of the CameraControl
Expand Down Expand Up @@ -1478,18 +1478,18 @@ class CameraControl extends Component {
/**
* Sets the minimum dolly speed.
*
* Default is ````0.01````.
* Default is ````0.06````.
*
* @param {Number} dollyMinSpeed New dolly minimum speed.
*/
set dollyMinSpeed(dollyMinSpeed) {
this._configs.dollyMinSpeed = (dollyMinSpeed !== undefined && dollyMinSpeed !== null) ? dollyMinSpeed : 0.01;
this._configs.dollyMinSpeed = (dollyMinSpeed !== undefined && dollyMinSpeed !== null) ? dollyMinSpeed : 0.06;
}

/**
* Gets the minimum dolly speed.
*
* Default is ````0.01````.
* Default is ````0.06````.
*
* @returns {Number} The current minimum dolly speed.
*/
Expand Down

0 comments on commit 49fc024

Please sign in to comment.