VehicleWheel.engineForce

Accelerates the wheel by applying an engine force. The wheel is only speed up if it is in contact with a surface. The RigidBody.mass of the vehicle has an effect on the acceleration of the vehicle. For a vehicle with a mass set to 1000, try a value in the 25 - 50 range for acceleration. Note: The simulation does not take the effect of gears into account, you will need to add logic for this if you wish to simulate gears. A negative value will result in the wheel reversing.

  1. double engineForce [@property getter]
  2. double engineForce [@property setter]
    struct VehicleWheel
    @nogc nothrow @property
    void
    engineForce
    (
    double v
    )

Meta