Difference between revisions of "B2.Body:setAwake"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2012.2.2.1<br/> | + | '''<translate>Available since</translate>:''' Gideros 2012.2.2.1<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><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 /> | ||
Line 8: | Line 8: | ||
b2.Body:setAwake(awake) | b2.Body:setAwake(awake) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''awake''': (boolean) <translate>set to true to wake body, false to put it to sleep</translate> <br/> | '''awake''': (boolean) <translate>set to true to wake body, false to put it to sleep</translate> <br/> |
Revision as of 07:28, 24 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