Difference between revisions of "R3d.Body:enableGravity"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Body<br/> === Description === Enables or disables gravity force on the body. Default is '''true'''. <source l...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Enables or disables gravity force on the body. Default is '''true'''.
 
Enables or disables gravity force on the body. Default is '''true'''.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
r3d.Body:enableGravity(enable)
 
r3d.Body:enableGravity(enable)
 
</source>
 
</source>
Line 12: Line 12:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
ship.body:enableGravity(false)
 
ship.body:enableGravity(false)
 
</source>
 
</source>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Revision as of 15:30, 13 July 2023