SmoothDamp<T>


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

TThe type of value to be animated.

Properties

valueThe current value (Read only).
velocityThe current velocity, this value is modified by the function every time you call it (Read only).
smoothTimeApproximately the time it will take to reach the target. A smaller value will reach the target faster.
maxSpeedOptionally allows you to clamp the maximum speed.

Methods

UpdateSmoothes the current value to the target value.