Difference between revisions of "B2.Body:setAwake"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 6: Line 6:
 
=== Description ===
 
=== Description ===
 
Sets the sleep state of the body. A sleeping body has very low CPU cost.
 
Sets the sleep state of the body. A sleeping body has very low CPU cost.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
b2.Body:setAwake(awake)
 
b2.Body:setAwake(awake)
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 16:58, 12 July 2023