B2.Body:isAwake: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
 
(One intermediate revision by the same user not shown)
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()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===

Latest revision as of 16:10, 12 July 2023