C# Класс 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.
Наследование: ICollisionRulesOwner
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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.

Описание методов

FindSupport() защищенный абстрактный метод

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.
Результат bool

Initialize() защищенный абстрактный метод

Initializes the detector entity and any other necessary logic.
protected abstract Initialize ( ) : void
Результат void

UpdateDetectorPosition() защищенный абстрактный метод

Updates the position of the detector before each step.
protected abstract UpdateDetectorPosition ( ) : void
Результат void

UpdateWorldTransform() публичный абстрактный метод

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
Результат void

Описание свойств

detector защищенное свойство

Collects collision pairs from the environment.
protected Box detector
Результат Box

localGraphicTransform защищенное свойство

protected Matrix localGraphicTransform
Результат Matrix

spinAngle защищенное свойство

protected float spinAngle
Результат float

spinVelocity защищенное свойство

protected float spinVelocity
Результат float

wheel защищенное свойство

protected Wheel wheel
Результат Wheel

worldTransform защищенное свойство

protected Matrix worldTransform
Результат Matrix