Entity DestroyPhysics

From CryWiki

Jump to: navigation, search

entity:DestroyPhysics()

Description

Destroys all physics properties of the entity, the entity will no longer be physical.


Example

Lua (example)
local e = System.SpawnEntity({class="US_ltv", position=g_localActor:GetPos()});
e:DestroyPhysics();


Notes

To set the physics properties of the entity, check out the Physicalize and SetPhysicParams functions.
To temporarely disable the physics, it's better to use EnablePhysics.

Personal tools