Add constants for smooth zoom response

This commit is contained in:
2026-04-27 00:52:12 +02:00
parent 94cc244383
commit 34488867e0

View File

@@ -427,6 +427,9 @@ const MIN_CAMERA_DISTANCE = 1.5;
const MAX_CAMERA_DISTANCE = 400;
const ORBIT_ROTATION_SPEED = 0.0085;
const ZOOM_SPEED = 0.0014;
const SMOOTH_ZOOM_RESPONSE = 22;
const SMOOTH_ZOOM_IMMEDIATE_RESPONSE = 0.42;
const SMOOTH_ZOOM_SNAP_EPSILON = 0.0015;
const MIN_POLAR_ANGLE = 0.12;
const MAX_POLAR_ANGLE = Math.PI - 0.12;
const FOCUS_MARGIN = 1.35;