Méthode | Description | |
---|---|---|
EntityRotator ( Entity e ) : System |
Constructs a new EntityRotator.
|
|
EntityRotator ( Entity e, |
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.
|
Méthode | Description | |
---|---|---|
IDuringForcesUpdateable ( float dt ) : void |
Called automatically by the space.
|
public EntityRotator ( Entity e ) : System | ||
e | Entity | Entity to move. |
Résultat | System |
public EntityRotator ( Entity e, |
||
e | Entity | Entity to move. |
angularMotor | Motor to use for angular motion if the entity is dynamic. | |
Résultat | System |
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 |
public OnAdditionToSpace ( ISpace newSpace ) : void | ||
newSpace | ISpace | |
Résultat | void |
public OnRemovalFromSpace ( ISpace oldSpace ) : void | ||
oldSpace | ISpace | |
Résultat | void |