Skip to content
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

How to enable damping? #3

Closed
quacrobat opened this issue May 25, 2021 · 2 comments
Closed

How to enable damping? #3

quacrobat opened this issue May 25, 2021 · 2 comments

Comments

@quacrobat
Copy link

Hello, do these controls have camera movement damping possibility like OrbitControls?
Thanks

@vanruesc
Copy link
Owner

Damping is not supported yet.

I've been keeping the following articles bookmarked for when I eventually get around to implementing damping:
http://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-lerp/
https://answers.unity.com/questions/215553/smoother-camera-movement.html
https://github.com/Unity-Technologies/UnityCsReference/blob/61f92bd79ae862c4465d35270f9d1d57befd1761/Runtime/Export/Math/Mathf.cs#L303-L331

Let me know if there are any other references that I should consider.

@vanruesc
Copy link
Owner

Implemented damping in spatial-controls@4.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants