R3d.Body:getAngularVelocity: Difference between revisions

From GiderosMobile
Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' R3d.Body<br/> === Description === Gets the body angular velocity. <source lang="lua"> (number) = r3d.Body:getAngul..."
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
=== Description ===
=== Description ===
Gets the body angular velocity.
Gets the body angular velocity.
<source 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 ===
<source 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())