From d81ce41e2aef00dd727d1a87c3c94b25674bbf17 Mon Sep 17 00:00:00 2001 From: kpal Date: Thu, 14 Nov 2024 12:04:07 +0000 Subject: [PATCH] Removed zoomDistMin and zoomDistMax --- scripts/camera/multi-camera.mjs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/scripts/camera/multi-camera.mjs b/scripts/camera/multi-camera.mjs index f74b7d4c6eb..27acdbfa93e 100644 --- a/scripts/camera/multi-camera.mjs +++ b/scripts/camera/multi-camera.mjs @@ -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. * @@ -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); } /**