Difference between revisions of "B2.World:destroyBody"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Destroys a rigid body. This function is locked during callbacks.<br /> <br /> <ul><br />...") |
|||
Line 15: | Line 15: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | b2.World:destroyBody(body) | |
</source> | </source> | ||
− | '''body | + | '''body''': (b2.Body) body to be destroyed ''''''<br/> |
Revision as of 10:19, 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)
'body: (b2.Body) body to be destroyed '