Difference between revisions of "B2.World:destroyBody"

From GiderosMobile
Line 17: Line 17:
 
  b2.World:destroyBody(body)
 
  b2.World:destroyBody(body)
 
</source>
 
</source>
'''body''': (b2.Body) body to be destroyed ''''''<br/>
+
=== Parameters ===
 +
'''body''': (b2.Body) body to be destroyed <br/>

Revision as of 10:44, 23 August 2018

Available since: Gideros 2011.6

Description


Destroys a rigid body. This function is locked during callbacks.

<ul>
<li>*Warning:**</li>
</ul>

<ul>
<li>This automatically deletes all associated shapes and joints.</li>
<li>This function is locked during callbacks.</li>
</ul>

 b2.World:destroyBody(body)

Parameters

body: (b2.Body) body to be destroyed