Class RotateTo3DWorkAction
Work action that rotates a 3D entity.
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 | The animation duration. |
EaseFunction | ease | The ease function. |
bool | local | Determines if the rotation is in local coordinates. |
bool | shorterPath | Determines if the rotation follows the shorter path. |
Methods
PerformRun()
Performs the run operation.
Declaration
protected override void PerformRun()