C# Class BEPUphysics.Paths.PathFollowing.EntityRotator

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

Méthodes publiques

Méthode 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

Méthode Description
IDuringForcesUpdateable ( float dt ) : void

Called automatically by the space.

Method Details

EntityRotator() public méthode

Constructs a new EntityRotator.
public EntityRotator ( Entity e ) : System
e Entity Entity to move.
Résultat System

EntityRotator() public méthode

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.
Résultat System

GetAngularVelocity() public static méthode

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.
Résultat Vector3

OnAdditionToSpace() public méthode

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

OnRemovalFromSpace() public méthode

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