DeleteEntity
From OxeyeWiki
|
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