Difference between revisions of "B2.World:destroyBody"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
Destroys a rigid body. This function is locked during callbacks.<br />
 
Destroys a rigid body. This function is locked during callbacks.<br />
Line 17: Line 17:
 
  b2.World:destroyBody(body)
 
  b2.World:destroyBody(body)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''body''': (b2.Body) <translate>body to be destroyed</translate> <br/>
 
'''body''': (b2.Body) <translate>body to be destroyed</translate> <br/>

Revision as of 07:27, 24 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