Hello,everyone
I want to ask how to realize the orbit-controls sliding effect like Campo alle comete camera has inertial ,Sliding a distance after we up the mouse.
Set controls.enableDamping
to true
. If damping is enabled, you must call controls.update()
in your animation loop.
1 Like
Thank you very much! And how to slow down the speed of the camera sliding speed but guarantee the effect of Inertial?
I’m not sure I understand what you mean. Can you please elaborate a bit?
Possibly, you’re looking for this:
https://threejs.org/docs/index.html#examples/controls/OrbitControls.dampingFactor
1 Like
Oh, sorry, I didn’t find the right value of controls.dampingFactor at first,now I adjust the value that I want!thank you very much!
Oh,Thank you very much!