Vehicle Class |
Namespace: DigitalRune.Physics.Specialized
The Vehicle 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.) | |
SetCarSteeringAngle |
Sets the steering angles for a standard 4 wheel car.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Chassis |
Gets or sets the chassis.
| |
Enabled |
Gets or sets a value indicating whether this vehicle is enabled.
| |
Simulation |
Gets the simulation.
| |
Wheels |
Gets the wheels.
|
A vehicle consists of one rigid body for the Chassis and several Wheels.
Using rays for wheels: Each wheel is a ray that samples the ground. This is very efficient and allows for tuning and artificial behavior. It is also more stable, because there are no constraints between the car and wheel bodies which could be violated. The disadvantage is that the wheel movement is not smooth when moving over non-smooth terrain (e.g. steps).
The forward direction of the vehicle is the -z direction.