self:is_able_to_sleep
Client
Checks whether the rigid body is allowed to sleep when at rest
Syntax
local result = self:is_able_to_sleep()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the condition is met, false otherwise |
Examples
local entity = physics.rigid.create()
core.engine.print("info", "Rigid body able to sleep:", entity:is_able_to_sleep())