Difference between revisions of "B2.Joint:isActive"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Short-cut function to determine if either body is inactive. <br /> <br /> <source lang="lua"> (...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
(bool), = b2.Joint:isActive()
+
(bool) = b2.Joint:isActive()
 
</source>
 
</source>
 
'''Returns''' (bool) `true` if both bodyA and bodyB is active, `false` otherwise<br/>
 
'''Returns''' (bool) `true` if both bodyA and bodyB is active, `false` otherwise<br/>

Revision as of 10:21, 23 August 2018

Available since: Gideros 2011.6

Description


Short-cut function to determine if either body is inactive.

(bool) = b2.Joint:isActive()

Returns (bool) `true` if both bodyA and bodyB is active, `false` otherwise