C# Class BEPUphysics.Vehicle.WheelSlidingFriction

Attempts to resist sliding motion of a vehicle.
Inheritance: ISolverSettings
ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Properties

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

WheelSlidingFriction ( float dynamicCoefficient, float staticCoefficient ) : System

Constructs a new sliding friction object for a wheel.

Private Methods

Method Description
ApplyImpulse ( ) : float
ExclusiveUpdate ( ) : void
PreStep ( float dt ) : void
WheelSlidingFriction ( ) : System
WheelSlidingFriction ( 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

WheelSlidingFriction() public method

Constructs a new sliding friction object for a wheel.
public WheelSlidingFriction ( float dynamicCoefficient, float staticCoefficient ) : System
dynamicCoefficient float Coefficient of dynamic sliding friction to be blended with the supporting entity's friction.
staticCoefficient float Coefficient of static sliding friction to be blended with the supporting entity's friction.
return System

Property Details

DefaultSlidingFrictionBlender public_oe static_oe property

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