Accelerometer:getAcceleration

From GiderosMobile
Revision as of 00:21, 9 December 2019 by MoKaLux (talk | contribs) (removed category reference)

Available since: Gideros 2012.8
Class: Accelerometer

Description

Returns the 3-axis acceleration measured by the accelerometer.

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

Return values

Returns (number) acceleration on x-axis in G's
Returns (number) acceleration on y-axis in G's
Returns (number) acceleration on z-axis in G's