Class RotateTo2DWorkAction
Work action that performs a rotating animation to a 2D entity.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class RotateTo2DWorkAction : FloatAnimationWorkAction, IWorkAction
Constructors
RotateTo2DWorkAction(Entity, float, TimeSpan, EaseFunction, bool)
Initializes a new instance of the RotateTo2DWorkAction class.
Declaration
public RotateTo2DWorkAction(Entity entity, float to, TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The target entity. |
| float | to | The target angle. |
| TimeSpan | time | Animation duration. |
| EaseFunction | ease | The ease function. |
| bool | local | If the rotation is local. |
Methods
PerformRun()
Performs the run operation.
Declaration
protected override void PerformRun()