yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.

Home Page:https://yomotsu.github.io/camera-controls/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Async setLookAt

IDrumsey opened this issue · comments

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

Yes, I'm trying to run a callback after the rotation has finished. I tried using the addEventHandler("controlend", ...) as suggested by chatgpt and it wasn't firing.

Describe the solution you'd like

It would be awesome if we could make the setLookAt method async which fires once the rotation is completed. Not sure exactly how we would trigger the resolve.

Describe alternatives you've considered

the "controlend" event which isn't firing. Also chatgpt suggested maybe using timeouts and just passing a number of milliseconds before resolving (not a fan).

Additional context

No response

nvm im a dum dum.