self:is_sync_to_physics_enabled
Client
Checks whether the animatable body synchronizes its motion to the physics step, ensuring accurate collision response while it moves
Syntax
local result = self:is_sync_to_physics_enabled()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if sync to physics is enabled, false otherwise |
Examples
local entity = physics.animatable.create()
core.engine.print("info", "Animatable body sync to physics enabled:", entity:is_sync_to_physics_enabled())