Difference between revisions of "B2.Body:destroyFixture"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<languages />
 
<languages />
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.Body|b2.Body]]<br/>
+
'''Class:''' [[Special:MyLanguage/b2.Body|b2.Body]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Destroy a fixture. This removes the fixture from the broad-phase and destroys all<br />
+
Destroys a fixture. This removes the fixture from the broad-phase and destroys all contacts associated with this fixture. This will automatically adjust the mass of the body if the body is dynamic and the fixture has positive density. All fixtures attached to a body are implicitly destroyed when the body is destroyed.
contacts associated with this fixture. This will automatically adjust the mass of the body if the<br />
+
 
body is dynamic and the fixture has positive density. All fixtures attached to a body are implicitly<br />
+
'''Warning''': this function is locked during callbacks.
destroyed when the body is destroyed.<br />
 
<br />
 
&lt;ul&gt;<br />
 
&lt;li&gt;*Warning:** This function is locked during callbacks.&lt;/li&gt;<br />
 
&lt;/ul&gt;<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
b2.Body:destroyFixture(fixture)
+
b2.Body:destroyFixture(fixture)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''fixture''': (b2.Fixture) <translate>the fixture to be removed</translate> <br/>
+
=== Parameters ===
 +
'''fixture''': (b2.Fixture) the fixture to be removed <br/>
 +
 
 +
{{B2.Body}}

Revision as of 06:56, 17 February 2020


Available since: Gideros 2011.6
Class: b2.Body

Description

Destroys a fixture. This removes the fixture from the broad-phase and destroys all contacts associated with this fixture. This will automatically adjust the mass of the body if the body is dynamic and the fixture has positive density. All fixtures attached to a body are implicitly destroyed when the body is destroyed.

Warning: this function is locked during callbacks.

b2.Body:destroyFixture(fixture)

Parameters

fixture: (b2.Fixture) the fixture to be removed




LiquidFun