B2.Fixture:getBody: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the parent body of this fixture. This is `nil` if the fixture is not attached.<br /> <b..."
 
No edit summary
Line 6: Line 6:
<br />
<br />
<source lang="lua">
<source lang="lua">
(b2.Body), = b2.Fixture:getBody()
(b2.Body) = b2.Fixture:getBody()
</source>
</source>
'''Returns''' (b2.Body) body that created the fixture<br/>
'''Returns''' (b2.Body) body that created the fixture<br/>

Revision as of 09:21, 23 August 2018

Available since: Gideros 2011.6

Description


Returns the parent body of this fixture. This is `nil` if the fixture is not attached.

(b2.Body) = b2.Fixture:getBody()

Returns (b2.Body) body that created the fixture