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

TypeNameDescription
boolresulttrue if sync to physics is enabled, false otherwise

Examples

Check sync to physics on a animatable body
local entity = physics.animatable.create()

core.engine.print("info", "Animatable body sync to physics enabled:", entity:is_sync_to_physics_enabled())

On this page