Class MoveTo3DWorkAction
Work action that animates a 3D entity.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class MoveTo3DWorkAction : Vector3AnimationWorkAction, IWorkAction
Constructors
MoveTo3DWorkAction(Entity, Vector3, TimeSpan, EaseFunction, bool)
Initializes a new instance of the MoveTo3DWorkAction class.
Declaration
public MoveTo3DWorkAction(Entity entity, Vector3 to, TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The target entity. |
| Vector3 | to | The target position. |
| TimeSpan | time | Animation duration. |
| EaseFunction | ease | The ease function. |
| bool | local | Whether the position is in local coordinates. |
Methods
PerformRun()
Performs the run operation.
Declaration
protected override void PerformRun()