Rigid Body
self:is_sleeping
SharedChecks whether the rigid body is currently sleeping (excluded from active physics simulation)
Syntax
local result = self:is_sleeping()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 sleeping:", entity:is_sleeping())self:is_visible_in_tree
Checks whether the rigid body is visible in the current scene tree, accounting for parent visibility
self:is_using_continuous_collision_detection
Checks whether continuous collision detection (CCD) is enabled on the rigid body, preventing fast-moving bodies from tunneling through thin geometry