Method | Description | |
---|---|---|
AdjustWheelValues ( ) : void |
This recalculates the inertia, damping and spring of all wheels based on the car mass, the wheel radius and the gravity. Should be called after manipulating wheel data.
|
|
DefaultCar ( |
Initializes a new instance of the DefaultCar class.
|
|
RemoveCar ( ) : void | ||
SetInput ( float accelerate, float steer ) : void |
Set input values for the car.
|
Method | Description | |
---|---|---|
world_PostStep ( float timeStep ) : void |
public DefaultCar ( |
||
world | The world the car should be in. | |
shape | The shape of the car. Recommend is a box shape. | |
return | System |
public SetInput ( float accelerate, float steer ) : void | ||
accelerate | float | A value between -1 and 1 (other values get clamped). Adjust
/// the maximum speed of the car by setting |
steer | float | A value between -1 and 1 (other values get clamped). Adjust
/// the maximum steer angle by setting |
return | void |