C# Class BEPUphysics.Paths.PathFollowing.EntityMover

Pushes an entity around according to goal positions and orientations.
Inheritance: BEPUphysics.UpdateableSystems.Updateable, IDuringForcesUpdateable
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
EntityMover ( Entity e ) : System

Constructs a new EntityMover.

EntityMover ( Entity e, SingleEntityLinearMotor linearMotor ) : System

Constructs a new EntityMover.

GetLinearVelocity ( System.Vector3 start, System.Vector3 end, float dt ) : System.Vector3

Gets the angular velocity necessary to change an entity's orientation from the starting quaternion to the ending quaternion over time dt.

OnAdditionToSpace ( ISpace newSpace ) : void

Adds the motors to the space. Called automatically.

OnRemovalFromSpace ( ISpace oldSpace ) : void

Removes the motors from the space. Called automatically.

Private Methods

Method Description
IDuringForcesUpdateable ( float dt ) : void

Called automatically by the space.

Method Details

EntityMover() public method

Constructs a new EntityMover.
public EntityMover ( Entity e ) : System
e Entity Entity to move.
return System

EntityMover() public method

Constructs a new EntityMover.
public EntityMover ( Entity e, SingleEntityLinearMotor linearMotor ) : System
e Entity Entity to move.
linearMotor BEPUphysics.Constraints.SingleEntity.SingleEntityLinearMotor Motor to use for linear motion if the entity is dynamic.
return System

GetLinearVelocity() public static method

Gets the angular velocity necessary to change an entity's orientation from the starting quaternion to the ending quaternion over time dt.
public static GetLinearVelocity ( System.Vector3 start, System.Vector3 end, float dt ) : System.Vector3
start System.Vector3 Initial position.
end System.Vector3 Final position.
dt float Time over which the angular velocity is to be applied.
return System.Vector3

OnAdditionToSpace() public method

Adds the motors to the space. Called automatically.
public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace
return void

OnRemovalFromSpace() public method

Removes the motors from the space. Called automatically.
public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
return void