Difference between revisions of "B2.Body:setAwake"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.2.2.1<br/> === Description === <br /> Set the sleep state of the body. A sleeping body has very low CPU cost.<br /> <br /> <sourc...") |
|||
Line 6: | Line 6: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | b2.Body:setAwake(awake) | |
</source> | </source> | ||
− | '''awake | + | '''awake''': (boolean) set to true to wake body, false to put it to sleep ''''''<br/> |
Revision as of 10:20, 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)
'awake: (boolean) set to true to wake body, false to put it to sleep '