Свойство | Тип | Описание | |
---|---|---|---|
detector | Box | ||
localGraphicTransform | Matrix | ||
spinAngle | float | ||
spinVelocity | float | ||
wheel | Wheel | ||
worldTransform | Matrix |
Метод | Описание | |
---|---|---|
UpdateWorldTransform ( ) : void |
Updates the wheel's world transform for graphics. Called automatically by the owning wheel at the end of each frame. If the engine is updating asynchronously, you can call this inside of a space read buffer lock and update the wheel transforms safely.
|
Метод | Описание | |
---|---|---|
FindSupport ( Vector3 &location, Vector3 &normal, float &suspensionLength, Collidable &supportCollidable, Entity &entity, BEPUphysics.Materials.Material &material ) : bool |
Finds a supporting entity, the contact location, and the contact normal.
|
|
Initialize ( ) : void |
Initializes the detector entity and any other necessary logic.
|
|
UpdateDetectorPosition ( ) : void |
Updates the position of the detector before each step.
|
Метод | Описание | |
---|---|---|
OnAdditionToSpace ( ISpace space ) : void | ||
OnRemovalFromSpace ( ISpace space ) : void | ||
UpdateSpin ( float dt ) : void |
Updates the spin velocity and spin angle for the shape.
|
protected abstract FindSupport ( Vector3 &location, Vector3 &normal, float &suspensionLength, Collidable &supportCollidable, Entity &entity, BEPUphysics.Materials.Material &material ) : bool | ||
location | Vector3 | Contact point between the wheel and the support. |
normal | Vector3 | Contact normal between the wheel and the support. |
suspensionLength | float | Length of the suspension at the contact. |
supportCollidable | Collidable | Collidable supporting the wheel, if any. |
entity | Entity | Entity supporting the wheel, if any. |
material | BEPUphysics.Materials.Material | Material of the support. |
Результат | bool |
protected abstract UpdateDetectorPosition ( ) : void | ||
Результат | void |
public abstract UpdateWorldTransform ( ) : void | ||
Результат | void |