yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.
https://yomotsu.github.io/camera-controls/
MIT License
2.05k stars 257 forks source link

Transition styles #545

Open samevision opened 1 month ago

samevision commented 1 month ago

Is your feature request related to a problem? Please describe.

Hi,

it would be very nice if we could change the transition style to linear or different ease functions.

Is it possible to extend it?

Best

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

yomotsu commented 1 month ago

I don't think it's possible. The Camera-Controls is managed by SmoothDamp, which is a type of damping rather than easing. If you wish to use general easing, I would recommend using a tween library like: https://yomotsu.github.io/camera-controls/examples/path-animation.html