Difference between revisions of "R3d.Body:getAngularVelocity"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 5: Line 5:
 
Gets the body angular velocity.
 
Gets the body angular velocity.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
(number) = r3d.Body:getAngularVelocity()
+
(number), (number), (number) = r3d.Body:getAngularVelocity()
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) the body angular velocity
+
'''Returns''' (number) the body angular x velocity in meters per second<br/>
 +
'''Returns''' (number) the body angular y velocity in meters per second<br/>
 +
'''Returns''' (number) the body angular z velocity in meters per second<br/>
  
 
=== Example ===
 
=== Example ===
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 +
print(player1.body:getAngularVelocity())
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Latest revision as of 10:04, 18 December 2025