Class Vector3Animation
Defines an animation that blends between two 3D vectors.
Inherited Members
Namespace: Ritchie.Toolbox.Animation
Assembly: Ritchie.Toolbox.dll
Syntax
public sealed class Vector3Animation : Animation<Vector3>, IAnimation, IAnimationHandle
Constructors
Vector3Animation(CurveFunction, float, Vector3, Vector3, Action<Vector3>)
Defines an animation that blends between two 3D vectors.
Declaration
public Vector3Animation(CurveFunction curveFunction, float duration, Vector3 from, Vector3 to, Action<Vector3> callback)
Parameters
Type | Name | Description |
---|---|---|
CurveFunction | curveFunction | The curve function to use for the animation. |
float | duration | The length, in seconds, of the animation. |
Vector3 | from | The value to start from. |
Vector3 | to | The value to blend toward. |
Action<Vector3> | callback | A callback to execute on each animation step. |