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
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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