How to implement smooth zoom?

I found out about this tool by @donmccurdy
which is like on another level :heart_eyes:.

One of the most noticeable thing is for me was the smooth zoom with the Orbit control.
Does anyone have any clue how this could have been implemented.

Is there already a Library for It, or He is modifying scale value in Orbit control using some library function.

Thank you.

1 Like

Thanks @SeeOn!

I borrowed the camera controls code from the ModelViewer project β€”

That code is a bit integrated with their project, not a standalone library, and so will take some adaptation. OrbitControls is easier to use and does have a β€œdamping” property you could use to smooth it out.