C# Class BEPUphysics.Vehicle.WheelShape

Superclass for the shape of the tires of a vehicle. Responsible for figuring out where the wheel touches the ground and managing graphical properties.
Inheritance: ICollisionRulesOwner
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Свойство Type Description
detector Box
localGraphicTransform Matrix
spinAngle float
spinVelocity float
wheel Wheel
worldTransform Matrix

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
OnAdditionToSpace ( ISpace space ) : void
OnRemovalFromSpace ( ISpace space ) : void
UpdateSpin ( float dt ) : void

Updates the spin velocity and spin angle for the shape.

Method Details

FindSupport() protected abstract méthode

Finds a supporting entity, the contact location, and the contact normal.
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.
Résultat bool

Initialize() protected abstract méthode

Initializes the detector entity and any other necessary logic.
protected abstract Initialize ( ) : void
Résultat void

UpdateDetectorPosition() protected abstract méthode

Updates the position of the detector before each step.
protected abstract UpdateDetectorPosition ( ) : void
Résultat void

UpdateWorldTransform() public abstract méthode

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.
public abstract UpdateWorldTransform ( ) : void
Résultat void

Property Details

detector protected_oe property

Collects collision pairs from the environment.
protected Box detector
Résultat Box

localGraphicTransform protected_oe property

protected Matrix localGraphicTransform
Résultat Matrix

spinAngle protected_oe property

protected float spinAngle
Résultat float

spinVelocity protected_oe property

protected float spinVelocity
Résultat float

wheel protected_oe property

protected Wheel wheel
Résultat Wheel

worldTransform protected_oe property

protected Matrix worldTransform
Résultat Matrix