C# Class BEPUphysics.Vehicle.WheelSuspension

Allows the connected wheel and vehicle to smoothly absorb bumps.
Inheritance: ISpringSettings, ISolverSettings
显示文件 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
WheelSuspension ( float stiffnessConstant, float dampingConstant, Vector3 localDirection, float restLength, Vector3 localAttachmentPoint ) : BEPUphysics.Constraints

Constructs a new suspension for a wheel.

Private Methods

Method Description
ApplyImpulse ( ) : float
ComputeWorldSpaceData ( ) : void
ExclusiveUpdate ( ) : void
OnAdditionToVehicle ( ) : void
PreStep ( float dt ) : void
WheelSuspension ( Wheel wheel ) : BEPUphysics.Constraints

Method Details

WheelSuspension() public method

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.
return BEPUphysics.Constraints