-
Notifications
You must be signed in to change notification settings - Fork 55
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
Maintain distance while orbiting fast #18
Comments
That should not happen. Orbit radius should stay constant, except for when smoothing happens, but I would expect that to eventually converge on a correct radius. I will try to reproduce this. |
Thank you. I can produce a minimal reproduction if needed. |
Yea I'm not able to reproduce this in the |
https://gfycat.com/briefelasticgermanwirehairedpointer Here's a screen recording of the |
I see. The radius constraint is only temporarily violated by the smoothing. This is because the smoothing happens in Cartesian coordinates in a controller-agnostic way. If you want a smooth orbit camera that always maintains the radius constraint, I suppose you would need to only apply smoothing in polar coordinates, i.e. to the camera's angles, not it's position. Perhaps we want some way to choose between different kinds of smoothing? Instead of just one However there is also the case where the |
same behavior when rotating fast. |
The orbit control example seems to bring the camera closer to the look-at point when rotating fast - presumably because it's taking the shortest path in 3D space. Would it be possible to maintain the distance from the centre when rotating?
The text was updated successfully, but these errors were encountered: