C# Class BEPUphysics.Vehicle.RaycastWheelShape

Uses a raycast as the shape of a wheel.
Inheritance: WheelShape
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

Méthode Description
RaycastWheelShape ( float graphicalRadius, Matrix localGraphicTransform ) : BEPUphysics.BroadPhaseEntries

Creates a new raycast based wheel shape.

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 ( System.Vector3 &location, System.Vector3 &normal, float &suspensionLength, Collidable &supportingCollidable, 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.

Method Details

FindSupport() protected méthode

Finds a supporting entity, the contact location, and the contact normal.
protected FindSupport ( System.Vector3 &location, System.Vector3 &normal, float &suspensionLength, Collidable &supportingCollidable, Entity &entity, BEPUphysics.Materials.Material &material ) : bool
location System.Vector3 Contact point between the wheel and the support.
normal System.Vector3 Contact normal between the wheel and the support.
suspensionLength float Length of the suspension at the contact.
supportingCollidable BEPUphysics.BroadPhaseEntries.Collidable Collidable supporting the wheel, if any.
entity Entity Supporting object.
material BEPUphysics.Materials.Material Material of the wheel.
Résultat bool

Initialize() protected méthode

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

RaycastWheelShape() public méthode

Creates a new raycast based wheel shape.
public RaycastWheelShape ( float graphicalRadius, Matrix localGraphicTransform ) : BEPUphysics.BroadPhaseEntries
graphicalRadius float Graphical radius of the wheel. /// This is not used for simulation. It is only used in /// determining aesthetic properties of a vehicle wheel, /// like position and orientation.
localGraphicTransform Matrix Local graphic transform of the wheel shape. /// This transform is applied first when creating the shape's worldTransform.
Résultat BEPUphysics.BroadPhaseEntries

UpdateDetectorPosition() protected méthode

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

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