Vehicle Body

self:set_mass

Shared

Sets the mass of the vehicle body

Syntax

local status = self:set_mass(
    mass
)

Parameters

TypeNameDescription
floatmassMass to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the mass of a vehicle body
local entity = physics.vehicle.create()

entity:set_mass(1200)

On this page