Table of Contents

Accelerometer:getAcceleration

Available since version: Gideros 2012.8

Description:

Returns the 3-axis acceleration measured by the accelerometer.

Syntax:

(number), (number), (number) = Accelerometer:getAcceleration()

Return value:

  • number: acceleration on x-axis in G's
  • number: acceleration on y-axis in G's
  • number: acceleration on z-axis in G's