C# 클래스 BEPUphysics.Vehicle.WheelSuspension

Allows the connected wheel and vehicle to smoothly absorb bumps.
상속: ISpringSettings, ISolverSettings
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
WheelSuspension ( float stiffnessConstant, float dampingConstant, Vector3 localDirection, float restLength, Vector3 localAttachmentPoint ) : BEPUphysics.Constraints

Constructs a new suspension for a wheel.

비공개 메소드들

메소드 설명
ApplyImpulse ( ) : float
ComputeWorldSpaceData ( ) : void
ExclusiveUpdate ( ) : void
OnAdditionToVehicle ( ) : void
PreStep ( float dt ) : void
WheelSuspension ( Wheel wheel ) : BEPUphysics.Constraints

메소드 상세

WheelSuspension() 공개 메소드

Constructs a new suspension for a wheel.
public WheelSuspension ( float stiffnessConstant, float dampingConstant, Vector3 localDirection, float restLength, Vector3 localAttachmentPoint ) : BEPUphysics.Constraints
stiffnessConstant float Strength of the spring. Higher values resist compression more.
dampingConstant float Damping constant of the spring. Higher values remove more momentum.
localDirection Vector3 Direction of the suspension in the vehicle's local space. For a normal, straight down suspension, this would be (0, -1, 0).
restLength float Length of the suspension when uncompressed.
localAttachmentPoint Vector3 Place where the suspension hooks up to the body of the vehicle.
리턴 BEPUphysics.Constraints