Difference between revisions of "R3d.Body:applyTorque"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Body<br/> === Description === Applies a torque to the body. <source lang="lua"> r3d.Body:applyTorque(torqueX,...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Applies a torque to the body.
 
Applies a torque to the body.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
r3d.Body:applyTorque(torqueX,torqueY,torqueZ)
 
r3d.Body:applyTorque(torqueX,torqueY,torqueZ)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 14: Line 14:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
if isleft then ship.body:applyTorque(0, -24 * 64, 0) end
 
if isleft then ship.body:applyTorque(0, -24 * 64, 0) end
</source>
+
</syntaxhighlight>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Latest revision as of 15:32, 13 July 2023