Difference between revisions of "B2.World:destroyBody"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <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 /> | ||
<br /> | <br /> | ||
Line 13: | Line 13: | ||
<li>This function is locked during callbacks.</li><br /> | <li>This function is locked during callbacks.</li><br /> | ||
</ul><br /> | </ul><br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
b2.World:destroyBody(body) | b2.World:destroyBody(body) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''body''': (b2.Body) body to be destroyed <br/> | + | '''body''': (b2.Body) <translate>body to be destroyed</translate> <br/> |
Revision as of 13:33, 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