Skip to content

Commit

Permalink
Removed zoomDistMin and zoomDistMax
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Nov 14, 2024
1 parent a049b82 commit d81ce41
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions scripts/camera/multi-camera.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,6 @@ class MultiCamera extends BaseCamera {
*/
zoomMax = 10;

/**
* The minimum distance the camera can zoom. This will override zoomMin.
*
* @attribute
* @type {number}
*/
zoomDistMin = 0;

/**
* The maximum distance the camera can zoom. This will override zoomMax.
*
* @attribute
* @type {number}
*/
zoomDistMax = Infinity;

/**
* The minimum scale the camera can zoom.
*
Expand Down Expand Up @@ -565,7 +549,6 @@ class MultiCamera extends BaseCamera {
const scale = math.clamp(this._zoomDist / (max - min), this.zoomScaleMin, 1);
this._zoomDist += (delta * this.wheelSpeed * this.sceneSize * scale);
this._zoomDist = math.clamp(this._zoomDist, min, max);
this._zoomDist = math.clamp(this._zoomDist, this.zoomDistMin, this.zoomDistMax);
}

/**
Expand Down

0 comments on commit d81ce41

Please sign in to comment.