VehicleBody.brake

Slows down the vehicle by applying a braking force. The vehicle is only slowed down if the wheels are in contact with a surface. The force you need to apply to adequately slow down your vehicle depends on the RigidBody.mass of the vehicle. For a vehicle with a mass set to 1000, try a value in the 25 - 30 range for hard braking.

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

Meta