isObjectDynamicPhysics
Server-side
Reports whether an object is currently simulated by GTA physics.
Syntax
bool isObjectDynamicPhysics(object theObject)Arguments
theObjectobjectObject to query.
Returns
true when dynamic physics is enabled; false otherwise or for an invalid object.
Ownership and lifecycle
The switch is server-side and travels with the object. Position, rotation, linear velocity and angular velocity are synchronized, so motion survives a syncer change and a stream-out/stream-in cycle. Collision is not generated; the object is simulated with whatever its model already has.
OOP aliases
object:isDynamicPhysics()object.dynamicPhysics
Where this comes from
SOURCECLuaObjectDefs.cppServer/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp INTRODUCED / EXTENDEDd3d1f2bdcRead the commit and why the change was made TEST RESOURCE dynamic-object-physics-harness test-resources/dynamic-object-physics-harness
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Dynamic object physics works →