Click or drag to resize
DigitalRuneVehicle Constructor
Initializes a new instance of the Vehicle class.

Namespace: DigitalRune.Physics.Specialized
Assembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax
public Vehicle(
	Simulation simulation,
	RigidBody chassis
)

Parameters

simulation
Type: DigitalRune.PhysicsSimulation
The simulation.
chassis
Type: DigitalRune.PhysicsRigidBody
The rigid body for the chassis.
Exceptions
ExceptionCondition
ArgumentNullExceptionsimulation or chassis is .
Remarks
The car will NOT be automatically enabled! The property Enabled needs to be set.
See Also