DeleteEntity
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{PhysicsMethod| physics:deleteEntity(entityId) | Removes all shapes, collisions, joints and the body identified with the entityId. Since the number of entity identifiers is limi...')
(Created page with '{{PhysicsMethod| physics:deleteEntity(entityId) | Removes all shapes, collisions, joints and the body identified with the entityId. Since the number of entity identifiers is limi...')
Latest revision as of 13:01, 7 February 2010
physics:deleteEntity(entityId) | ||
Removes all shapes, collisions, joints and the body identified with the entityId. Since the number of entity identifiers is limited to 2^15 (because of the filterGroup shape setting), entity identifiers will be re-used when entities are removed. | ||
Parameter | Expected Type | Description |
entityId | An integer | The body id number of the entity that should be removed. |
Returns | ||
Returns nothing. |
Example
physics:deleteEntity(player.body) player.body = nil