Difference between revisions of "Gyroscope:getRotationRate"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 9: Line 9:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
(number), (number), (number) = Gyroscope:getRotationRate()
</source>
+
</syntaxhighlight>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (number) <translate>rate of rotation around x</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>rate of rotation around x</translate><br/>

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.8
Class: Gyroscope

Description


Returns the device's rate of rotation around three axes in radians per second.

(number), (number), (number) = Gyroscope:getRotationRate()

Return values

Returns (number) rate of rotation around x
Returns (number) rate of rotation around y
Returns (number) rate of rotation around z