self:set_gravity_scale
Client
Sets the gravity scale multiplier of the rigid body
Syntax
local status = self:set_gravity_scale(
scale
)Parameters
| Type | Name | Description |
|---|---|---|
float | scale | Gravity scale multiplier to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_gravity_scale(1.5)