Difference between revisions of "B2.Body:setAwake"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.2.2.1<br/>
 
'''Available since:''' Gideros 2012.2.2.1<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Set the sleep state of the body. A sleeping body has very low CPU cost.<br />
 
Set the sleep state of the body. A sleeping body has very low CPU cost.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  b2.Body:setAwake(awake)
 
  b2.Body:setAwake(awake)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''awake''': (boolean) set to true to wake body, false to put it to sleep <br/>
+
'''awake''': (boolean) <translate>set to true to wake body, false to put it to sleep</translate> <br/>

Revision as of 13:34, 23 August 2018

Available since: Gideros 2012.2.2.1

Description


Set the sleep state of the body. A sleeping body has very low CPU cost.

 b2.Body:setAwake(awake)

Parameters

awake: (boolean) set to true to wake body, false to put it to sleep