Difference between revisions of "Gyroscope:getRotationRate"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 7: Line 7:
 
Returns the device&#039;s rate of rotation around three axes in radians per second.<br />
 
Returns the device&#039;s rate of rotation around three axes in radians per second.<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
</source>
 
</source>

Revision as of 14:28, 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.

<syntaxhighlight lang="lua"> (number), (number), (number) = Gyroscope:getRotationRate() </source>

Return values

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