C# Class BEPUphysics.Vehicle.WheelDrivingMotor

Handles a wheel's driving force for a vehicle.
Inheritance: ISolverSettings
ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
DefaultGripFrictionBlender WheelFrictionBlender

Public Methods

Method Description
BlendFriction ( float wheelFriction, float materialFriction, bool usingKinematicFriction, Wheel wheel ) : float

Function which takes the friction values from a wheel and a supporting material and computes the blended friction.

WheelDrivingMotor ( float gripFriction, float maximumForwardForce, float maximumBackwardForce ) : BEPUphysics.Constraints

Constructs a new wheel motor.

Private Methods

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

Method Details

BlendFriction() public static method

Function which takes the friction values from a wheel and a supporting material and computes the blended friction.
public static BlendFriction ( float wheelFriction, float materialFriction, bool usingKinematicFriction, Wheel wheel ) : float
wheelFriction float Friction coefficient associated with the wheel.
materialFriction float Friction coefficient associated with the support material.
usingKinematicFriction bool
wheel Wheel Wheel being blended.
return float

WheelDrivingMotor() public method

Constructs a new wheel motor.
public WheelDrivingMotor ( float gripFriction, float maximumForwardForce, float maximumBackwardForce ) : BEPUphysics.Constraints
gripFriction float Friction coefficient of the wheel. Blended with the ground's friction coefficient and normal force to determine a maximum force.
maximumForwardForce float Maximum force that the wheel motor can apply when driving forward (a target speed greater than zero).
maximumBackwardForce float Maximum force that the wheel motor can apply when driving backward (a target speed less than zero).
return BEPUphysics.Constraints

Property Details

DefaultGripFrictionBlender public_oe static_oe property

Default blender used by WheelSlidingFriction constraints.
public static WheelFrictionBlender DefaultGripFrictionBlender
return WheelFrictionBlender