self:set_freeze_enabled
Client
Sets whether the rigid body is frozen
Syntax
local status = self:set_freeze_enabled(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to freeze the body, false to unfreeze it |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_freeze_enabled(true)