SmoothDamp<T>
Class in Zigurous.Animation
Declaration
[Serializable]
public abstract class SmoothDamp<T>
Description
Gradually changes a value over time using a spring-damper function, which will never overshoot.
Type Parameters
T | The type of value to be animated. |
Properties
value | The current value (Read only). |
velocity | The current velocity, this value is modified by the function every time you call it (Read only). |
smoothTime | Approximately the time it will take to reach the target. A smaller value will reach the target faster. |
maxSpeed | Optionally allows you to clamp the maximum speed. |
Methods
Update | Smoothes the current value to the target value. |