self:get_mass

Client

Retrieves the mass of the vehicle body


Syntax

local value = self:get_mass()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent mass

Examples

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

core.engine.print("info", "Vehicle body mass:", entity:get_mass())

On this page