C# Class WaveEngine.Components.GameActions.RotateTo3DGameAction

Game action that rotates an entity 3D.
Inheritance: Vector3AnimationGameAction
Show file Open project: WaveEngine/Components Class Usage Examples

Public Methods

Method Description
RotateTo3DGameAction ( System.Entity entity, System.Vector3 to, System.TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false ) : System

Initializes a new instance of the RotateTo3DGameAction class.

Protected Methods

Method Description
PerformRun ( ) : void

Performs the run operation

Private Methods

Method Description
LocalRotateAction ( System.Vector3 delta ) : void

Local Rotate action

RotateAction ( System.Vector3 delta ) : void

Rotate action

Method Details

PerformRun() protected method

Performs the run operation
protected PerformRun ( ) : void
return void

RotateTo3DGameAction() public method

Initializes a new instance of the RotateTo3DGameAction class.
public RotateTo3DGameAction ( System.Entity entity, System.Vector3 to, System.TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false ) : System
entity System.Entity The target entity
to System.Vector3 The target rotation
time System.TimeSpan Animation duration
ease EaseFunction The ease function
local bool If the rotation is in local coordinates
return System