SmoothDampVector2

Inherits from SmoothDamp<T>

Declaration

[Serializable]
public class SmoothDampVector2 : SmoothDamp<Vector2>

Description

Gradually changes a Vector2 over time using a spring-damper function, which will never overshoot.

Methods

UpdateSmoothes the current value to the target value.
Inherited

Properties

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.