Difference between revisions of "R3d.Body:setAngularVelocity"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 5: Line 5:
 
Sets the body angular velocity.
 
Sets the body angular velocity.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
r3d.Body:setAngularVelocity(number)
+
r3d.Body:setAngularVelocity(avx,avy,avz)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
'''number''': (number) body angular velocity
+
'''avx''': (number) new body angular x velocity in meters per second<br/>
 +
'''avy''': (number) new body angular y velocity in meters per second<br/>
 +
'''avz''': (number) new body angular z velocity in meters per second<br/>
  
 
=== Example ===
 
=== Example ===
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 +
player1.body:setAngularVelocity(0, 1, 0)
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Latest revision as of 10:08, 18 December 2025