-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
"smooth_damp" functions for primitives and math structs #13408
Comments
I definitely want this: very useful! This feels like something that could be added as an auto-implemented method on the You would probably need to special case the spherical interpolation in some form. Perhaps a newtyped Vec2/Vec3 that captures the notion of operating in spherical coordinates? |
|
|
If |
Yes, I'm not familiar enough with Rust to know if auto-implement is the right thing to do. |
Pretty much all of those should have an |
What problem does this solve or what need does it fill?
I need to smoothly move a value towards a target value over time using velocity and other parameters (see below).
What solution would you like?
I would like a set of "smooth_damp" functions for primitives and which have:
Importantly, I would also like a spherical smooth_damp for Vec2 and Vec3.
What alternative(s) have you considered?
A similar effect can be achieved using interpolation functions while updating the start value. However, this lacks all the parameters of a smooth_damp function.
Additional context
https://docs.unity3d.com/ScriptReference/Vector3.SmoothDamp.html
The text was updated successfully, but these errors were encountered: