C# Class BEPUphysics.Vehicle.WheelBrake

Attempts to resist rolling motion of a vehicle.
Inheritance: ISolverSettings
显示文件 Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
DefaultRollingFrictionBlender 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.

WheelBrake ( float dynamicBrakingFrictionCoefficient, float staticBrakingFrictionCoefficient, float rollingFrictionCoefficient ) : System

Constructs a new rolling friction object for a wheel.

Private Methods

Method Description
ApplyImpulse ( ) : float
ExclusiveUpdate ( ) : void
PreStep ( float dt ) : void
WheelBrake ( ) : System
WheelBrake ( Wheel wheel ) : System

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

WheelBrake() public method

Constructs a new rolling friction object for a wheel.
public WheelBrake ( float dynamicBrakingFrictionCoefficient, float staticBrakingFrictionCoefficient, float rollingFrictionCoefficient ) : System
dynamicBrakingFrictionCoefficient float Coefficient of dynamic friction of the wheel for friction when the brake is active.
staticBrakingFrictionCoefficient float Coefficient of static friction of the wheel for friction when the brake is active.
rollingFrictionCoefficient float Coefficient of friction of the wheel for rolling friction when the brake isn't active.
return System

Property Details

DefaultRollingFrictionBlender public_oe static_oe property

Default blender used by WheelRollingFriction constraints.
public static WheelFrictionBlender DefaultRollingFrictionBlender
return WheelFrictionBlender