-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera controls updates #7205
Camera controls updates #7205
Conversation
I'm very interested in an easy to use option for the basic camera-controls that allow for clamping the camera within a radius of the origin (or defined point) as well as keeping it above the ground plane, in case that's on the menu! |
So by using a callback on the camera |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I'm typically used to dumping work the opposite way, a larger value would stop the rotation quicker, but this works as well.
Overview
zoomDamping
separate fromrotateDamping
andmoveDamping
clamp:position
andclamp:look
for more complex restriction of camera controls such as setting custom boundsExamples