Difference between revisions of "B2.Body:destroyFixture"

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

Latest revision as of 16:58, 12 July 2023


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