DeleteEntity

From OxeyeWiki

Revision as of 13:01, 7 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Daisymoon Physics Lib


Example


   physics:deleteEntity(player.body)
   player.body = nil

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox