Click or drag to resize
DigitalRuneVehicleSetCarSteeringAngle Method
Sets the steering angles for a standard 4 wheel car.

Namespace: DigitalRune.Physics.Specialized
Assembly: 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
)

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
ExceptionCondition
ArgumentNullExceptionfrontLeft, frontRight, backLeft, or backRight is .
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