Wheel Class |
Namespace: DigitalRune.Physics.Specialized
The Wheel type exposes the following members.
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AngularVelocity |
Gets or sets the angular velocity of the wheel about the rotation axis.
| |
BrakeForce |
Gets or sets the brake force.
| |
CollisionObject |
Gets the collision object that defines collision detection behavior of the ray.
| |
Friction |
Gets or sets the friction.
| |
GeometricObject |
Gets the geometric object that defines the pose of the ray.
| |
GroundNormal |
Gets the normal vector of the ground at the GroundPosition.
| |
GroundPosition |
Gets the position where the wheel touches the ground.
| |
HasGroundContact |
Gets a value indicating whether this wheel has ground contact.
| |
MaxSuspensionForce |
Gets or sets the max suspension force.
| |
MinSuspensionLength |
Gets or sets the minimal suspension length.
| |
MotorForce |
Gets or sets the motor force.
| |
Offset |
Gets or sets the wheel offset.
| |
Pose |
Gets the pose of the wheel in world space.
| |
Radius |
Gets or sets the radius of the wheel.
| |
Ray |
Gets the ray.
| |
RollingFrictionForce |
Gets or sets the rolling friction force.
| |
RollReduction |
Gets or sets the roll reduction.
| |
RotationAngle |
Gets or sets the rotation angle about the rolling axis.
| |
SkidEnergy |
Gets or sets the skid energy.
| |
SteeringAngle |
Gets or sets the steering angle.
| |
SuspensionCompressionDamping |
Gets or sets the suspension damping during compression.
| |
SuspensionLength |
Gets the current suspension length.
| |
SuspensionRelaxationDamping |
Gets or sets the suspension damping during relaxation.
| |
SuspensionRestLength |
Gets or sets the rest length of the suspension.
| |
SuspensionStiffness |
Gets or sets the suspension stiffness.
| |
TouchedBody |
Gets the touched body (= the ground object).
| |
Vehicle |
Gets (or sets) the vehicle to which the wheel is attached.
|
The wheel is modeled as a short ray that samples the ground. The ray is attached to the car where the suspension is fixed. It shoots down (-y in vehicle space). The ray length is equal to the suspension rest length + the wheel radius. If the SteeringAngle is 0, the wheel rotates (rolls) around the x-axis in vehicle space.
Each wheel can only be attached to one Vehicle
The wheel has a lot of parameters. Careful tuning is necessary to achieve the desired driving and sliding behavior.