Click or drag to resize

VehicleBodyEngineForce Property

Accelerates the vehicle by applying an engine force. The vehicle is only speed up if the wheels that have UseAsTraction set to true and are in contact with a surface. The 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 vehicle reversing.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public float EngineForce { get; set; }

Property Value

Type: Single
See Also