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