self:get_mass
Client
Retrieves the mass of the rigid body
Syntax
local value = self:get_mass()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | value | Current mass |
Examples
local entity = physics.rigid.create()
core.engine.print("info", "Rigid body mass:", entity:get_mass())