Skip to main content

Vehicle::setGravity

if you set this to false the vehicle will no longer move and will not have any gravity (vehicles with parachute will no longer go up when the parachute is open)

Syntax

```js vehicle.setGravity(toggle); ```

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

```js // todo ```

See also