R3d.Body:getAngularVelocity: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
No edit summary
 
(One intermediate revision by one other user not shown)
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()
</source>
</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">
</source>
print(player1.body:getAngularVelocity())
</syntaxhighlight>


{{R3d.Body}}
{{R3d.Body}}

Latest revision as of 09:04, 18 December 2025

Available since: Gideros 2020.2
Class: R3d.Body

Description

Gets the body angular velocity.

(number), (number), (number) = r3d.Body:getAngularVelocity()

Return values

Returns (number) the body angular x velocity in meters per second
Returns (number) the body angular y velocity in meters per second
Returns (number) the body angular z velocity in meters per second

Example

print(player1.body:getAngularVelocity())