self:set_freeze_mode
Client
Sets the freeze mode of the rigid body
Syntax
local status = self:set_freeze_mode(
mode
)Parameters
| Type | Name | Description |
|---|---|---|
int | mode | Freeze mode enum value — refer to physics.rigid.freeze_mode |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_freeze_mode(physics.rigid.freeze_mode.KINEMATIC)