Add constants for smooth zoom response
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user