-
Hi, I’m using camera-controls in my Three.js project, and I want to completely disable smooth transitions for camera movements (orbiting, panning, and zooming). Specifically, I’d like all movements to happen instantly without easing or damping. Here’s what I’ve tried so far:
This removes some smoothing for orbiting and panning, but it doesn't affect zooming. Is there a specific way to configure camera-controls for snappy, instant camera movements for all interactions (orbit, pan, zoom)? Any guidance or clarification would be greatly appreciated! Thanks for the awesome library! 🙌 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
sorry for the delay, The smooth behavior in camera-controls/src/CameraControls.ts Line 3125 in 582c9be However, you can customize the internal method by extending the CameraControls class.
You can then integrate |
Beta Was this translation helpful? Give feedback.
sorry for the delay,
The smooth behavior in
_zoomInternal
cannot be directly modified:camera-controls/src/CameraControls.ts
Line 3125 in 582c9be
However, you can customize the internal method by extending the CameraControls class.
Here's an example: