Method | Description | |
---|---|---|
EntityMover ( Entity e ) : System |
Constructs a new EntityMover.
|
|
EntityMover ( Entity e, |
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.
|
Method | Description | |
---|---|---|
IDuringForcesUpdateable ( float dt ) : void |
Called automatically by the space.
|
public EntityMover ( Entity e ) : System | ||
e | Entity | Entity to move. |
return | System |
public EntityMover ( Entity e, |
||
e | Entity | Entity to move. |
linearMotor | Motor to use for linear motion if the entity is dynamic. | |
return | System |
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 |
public OnAdditionToSpace ( ISpace newSpace ) : void | ||
newSpace | ISpace | |
return | void |
public OnRemovalFromSpace ( ISpace oldSpace ) : void | ||
oldSpace | ISpace | |
return | void |