Difference between revisions of "B2.Body:setAwake"

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

Latest revision as of 17:58, 12 July 2023