DeleteEntity

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
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...')

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.

Daisymoon Physics Lib


Example


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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox