Click or drag to resize
DigitalRuneVehicle Class
Represents a simulated vehicle.
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.SpecializedVehicle

Namespace: DigitalRune.Physics.Specialized
Assembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax
public class Vehicle

The Vehicle type exposes the following members.

Constructors
  NameDescription
Public methodVehicle
Initializes a new instance of the Vehicle class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberSetCarSteeringAngle
Sets the steering angles for a standard 4 wheel car.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyChassis
Gets or sets the chassis.
Public propertyEnabled
Gets or sets a value indicating whether this vehicle is enabled.
Public propertySimulation
Gets the simulation.
Public propertyWheels
Gets the wheels.
Top
Remarks

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.

See Also