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
2k stars 255 forks source link

Camera Controls - Scrolling #455

Open MarquesCoding opened 1 year ago

MarquesCoding commented 1 year ago

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

yomotsu commented 1 year ago

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!