Difference between revisions of "R3d.Body:setIsAllowedToSleep"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Body<br/> === Description === Allows or disallows a body to sleep. <source lang="lua"> r3d.Body:setIsAllowedT...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Allows or disallows a body to sleep.
 
Allows or disallows a body to sleep.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
r3d.Body:setIsAllowedToSleep(allowed)
 
r3d.Body:setIsAllowedToSleep(allowed)
 
</source>
 
</source>
Line 12: Line 12:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
ship.body:setIsAllowedToSleep(false)
 
ship.body:setIsAllowedToSleep(false)
 
</source>
 
</source>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Revision as of 14:30, 13 July 2023