C# Class BEPUphysics.Paths.PathFollowing.EntityRotator

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

Public Methods

Method Description
EntityRotator ( Entity e ) : System

Constructs a new EntityRotator.

EntityRotator ( Entity e, SingleEntityAngularMotor angularMotor ) : System

Constructs a new EntityRotator.

GetAngularVelocity ( Microsoft.Xna.Framework.Quaternion start, Microsoft.Xna.Framework.Quaternion end, float dt ) : 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 solver. Called automatically.

OnRemovalFromSpace ( ISpace oldSpace ) : void

Removes the motors from the solver. Called automatically.

Private Methods

Method Description
IDuringForcesUpdateable ( float dt ) : void

Called automatically by the space.

Method Details

EntityRotator() public method

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

EntityRotator() public method

Constructs a new EntityRotator.
public EntityRotator ( Entity e, SingleEntityAngularMotor angularMotor ) : System
e Entity Entity to move.
angularMotor BEPUphysics.Constraints.SingleEntity.SingleEntityAngularMotor Motor to use for angular motion if the entity is dynamic.
return System

GetAngularVelocity() 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 GetAngularVelocity ( Microsoft.Xna.Framework.Quaternion start, Microsoft.Xna.Framework.Quaternion end, float dt ) : Vector3
start Microsoft.Xna.Framework.Quaternion Initial orientation.
end Microsoft.Xna.Framework.Quaternion Final orientation.
dt float Time over which the angular velocity is to be applied.
return Vector3

OnAdditionToSpace() public method

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

OnRemovalFromSpace() public method

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