C# Class WaveEngine.Components.GameActions.MoveTo3DGameAction

Game action which animates an 3D entity
Inheritance: Vector3AnimationGameAction
Show file Open project: WaveEngine/Components

Public Methods

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

Initializes a new instance of the MoveTo3DGameAction class.

Protected Methods

Method Description
PerformRun ( ) : void

Performs the run operation

Private Methods

Method Description
LocalMoveAction ( System.Vector3 delta ) : void

Move action

MoveAction ( System.Vector3 delta ) : void

Move action

Method Details

MoveTo3DGameAction() public method

Initializes a new instance of the MoveTo3DGameAction class.
public MoveTo3DGameAction ( 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 position
time System.TimeSpan Animation duration
ease EaseFunction The ease function
local bool If the position is in local coordinates.
return System

PerformRun() protected method

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