| VehicleSetCarSteeringAngle Method |
Sets the steering angles for a standard 4 wheel car.
Namespace: DigitalRune.Physics.SpecializedAssembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax public static void SetCarSteeringAngle(
float steeringAngle,
Wheel frontLeft,
Wheel frontRight,
Wheel backLeft,
Wheel backRight
)
Public Shared Sub SetCarSteeringAngle (
steeringAngle As Single,
frontLeft As Wheel,
frontRight As Wheel,
backLeft As Wheel,
backRight As Wheel
)
public:
static void SetCarSteeringAngle(
float steeringAngle,
Wheel^ frontLeft,
Wheel^ frontRight,
Wheel^ backLeft,
Wheel^ backRight
)
static member SetCarSteeringAngle :
steeringAngle : float32 *
frontLeft : Wheel *
frontRight : Wheel *
backLeft : Wheel *
backRight : Wheel -> unit
Parameters
- steeringAngle
- Type: SystemSingle
The steering angle. - frontLeft
- Type: DigitalRune.Physics.SpecializedWheel
The front left wheel. - frontRight
- Type: DigitalRune.Physics.SpecializedWheel
The front right wheel. - backLeft
- Type: DigitalRune.Physics.SpecializedWheel
The back left wheel. - backRight
- Type: DigitalRune.Physics.SpecializedWheel
The back right wheel.
Exceptions Remarks
In a real car, the steerable front wheels do not always have the same steering angle. Have a
look at http://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
(section "Curves") for an explanation. The steering angle defines the angle of the inner
wheel. The outer wheel is adapted. This works only for 4 wheels in a normal car setup.
See Also