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>")
 
(One intermediate revision by the same user not shown)
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>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 12: Line 12:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
ship.body:enableGravity(false)
 
ship.body:enableGravity(false)
</source>
+
</syntaxhighlight>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Latest revision as of 14:31, 13 July 2023