self:set_mass
Client
Sets the mass of the rigid body
Syntax
local status = self:set_mass(
mass
)Parameters
| Type | Name | Description |
|---|---|---|
float | mass | Mass to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_mass(5.0)