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

Limit truck to a single axis #543

Open justinkwaugh opened 2 weeks ago

justinkwaugh commented 2 weeks ago

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

I would like to allow the user to truck forward and backward but not side to side. Is there a way to accomplish this?

Describe the solution you'd like

something like .enableTruckX = false

Describe alternatives you've considered

No response

Additional context

No response

yomotsu commented 1 week ago

Do you mean this? https://github.com/yomotsu/camera-controls?tab=readme-ov-file#forward-distance-enabletransition-