B2.Joint:isActive: Difference between revisions
From GiderosMobile
mNo edit summary |
m Text replacement - "</source" to "</syntaxhighlight" |
||
| Line 7: | Line 7: | ||
<source lang="lua"> | <source lang="lua"> | ||
(bool) = b2.Joint:isActive() | (bool) = b2.Joint:isActive() | ||
</ | </syntaxhighlight> | ||
=== Return values === | === Return values === | ||
Revision as of 15:36, 12 July 2023
Available since: Gideros 2011.6
Class: b2.Joint
Description
Shortcut function to determine if either body is inactive. <source lang="lua"> (bool) = b2.Joint:isActive() </syntaxhighlight>
Return values
Returns (bool) true if both bodyA and bodyB are active, false otherwise