VehicleBody

    Category: Core

    Physics body that simulates the behavior of a car.

    Note that the origin point of your VehicleBody will determine the center of gravity of your vehicle so it is better to keep this low and move the and MeshInstance upwards.

    • 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.


    A negative value will result in the vehicle reversing.


    • steering

    The steering angle for the vehicle. Setting this to a non-zero value will result in the vehicle turning when it’s moving. Wheels that have VehicleWheel.use_as_steering set to true will automatically be rotated.