B2.Body:isAwake: Difference between revisions

From GiderosMobile
m Text replacement - "</source" to "</syntaxhighlight"
m Text replacement - "<source" to "<syntaxhighlight"
 
Line 6: Line 6:
=== Description ===
=== Description ===
Returns the sleeping state of this body. Returns ''true'' if body is awake (not sleeping), ''false'' otherwise.
Returns the sleeping state of this body. Returns ''true'' if body is awake (not sleeping), ''false'' otherwise.
<source lang="lua">
<syntaxhighlight lang="lua">
(bool) = b2.Body:isAwake()
(bool) = b2.Body:isAwake()
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 16:10, 12 July 2023