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