Table of Contents

Gyroscope:getRotationRate

Available since version: Gideros 2012.8

Description:

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

Syntax:

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

Return value:

  • number: rate of rotation around x
  • number: rate of rotation around y
  • number: rate of rotation around z