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

Camera Controls - Scrolling

MarquesCoding opened this issue · comments

Hi,

I'm currently using these camera control but within with react-three/drei but I'm wondering if this is possible...
I'd like to have it so that, when using the scroll wheel it moves the camera up and down (top and bottom - NOT ZOOM) and if I'm pressing shift it will go left to right...

Thanks

I think you could. try the config example and the boundary one.
https://yomotsu.github.io/camera-controls/examples/config.html
https://yomotsu.github.io/camera-controls/examples/boundary.html

If you wish to have a more dedicated feature for it, you can make a PR as well!