Lerp Animation
Description
The Lerp Animation class is used to simulates interpolation animations that move a transform to a destination and retreat to their original position.
Editor Properties

Property | Function |
Target Position | Defines the animation’s target (destination) position. |
Target Rotation | Defines the animation’s target rotation. |
Duration | Defines how long the animation will take to move from the origin to the destination. |
Return Duration | Defines how long the animation will take to retreat from the destination to the original position. |
Public Properties
Property | Function |
Position | The current rotation of the transform. |
Rotation | The current rotation of the transform. |
Public Methods
Method | Function |
LerpAnimation | Constructor. |
SetTargets | Define the target position and rotation. |
Play | Interpolates the position and rotation and retreat to the original position. |
Stop | Immediately interpolates the position and rotation to the to the original position. |