Difference between revisions of "B2.Fixture:getBody"

From GiderosMobile
m (language)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the parent body of this fixture. This is ''nil'' if the fixture is not attached.
 
Returns the parent body of this fixture. This is ''nil'' if the fixture is not attached.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(b2.Body) = b2.Fixture:getBody()
 
(b2.Body) = b2.Fixture:getBody()
 
</source>
 
</source>

Revision as of 17:58, 12 July 2023

Available since: Gideros 2011.6
Class: b2.Fixture

Description

Returns the parent body of this fixture. This is nil if the fixture is not attached. <syntaxhighlight lang="lua"> (b2.Body) = b2.Fixture:getBody() </source>

Return values

Returns (b2.Body) body that created the fixture




LiquidFun