C# Class BEPUphysics.Vehicle.Wheel

Supports a Vehicle.
显示文件 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
Wheel ( WheelShape shape ) : System

Constructs a new wheel. The WheelSlidingFriction, WheelBrake, WheelSuspension, and WheelDrivingMotor should be configured prior to using this wheel.

Wheel ( WheelShape shape, WheelSuspension suspension, WheelDrivingMotor motor, WheelBrake rollingFriction, WheelSlidingFriction slidingFriction ) : System

Constructs a new wheel.

Private Methods

Method Description
ApplyImpulse ( ) : bool

Applies impulses and returns whether or not this wheel should be updated more.

ExclusiveUpdate ( ) : void
FindSupport ( ) : void
OnAddedToVehicle ( Vehicle vehicle ) : void
OnAdditionToSpace ( ISpace space ) : void
OnRemovalFromSpace ( ISpace space ) : void
OnRemovedFromVehicle ( ) : void
PreStep ( float dt ) : void
UpdateAtEndOfFrame ( float dt ) : void
UpdateAtEndOfUpdate ( float dt ) : void
UpdateDuringForces ( float dt ) : void
UpdateSolverActivity ( ) : void

Method Details

Wheel() public method

Constructs a new wheel. The WheelSlidingFriction, WheelBrake, WheelSuspension, and WheelDrivingMotor should be configured prior to using this wheel.
public Wheel ( WheelShape shape ) : System
shape WheelShape Shape of the wheel.
return System

Wheel() public method

Constructs a new wheel.
public Wheel ( WheelShape shape, WheelSuspension suspension, WheelDrivingMotor motor, WheelBrake rollingFriction, WheelSlidingFriction slidingFriction ) : System
shape WheelShape Shape of the wheel.
suspension WheelSuspension Springy support of the vehicle.
motor WheelDrivingMotor Driving force for the wheel.
rollingFriction WheelBrake Friction force resisting the forward and backward motion of the wheel.
slidingFriction WheelSlidingFriction Friction force resisting the side to side motion of the wheel.
return System