Difference between revisions of "Accelerometer:getAcceleration"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2012.8<br/> | '''<translate>Available since</translate>:''' Gideros 2012.8<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Accelerometer|Accelerometer]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Accelerometer|Accelerometer]]<br/> |
Revision as of 09:58, 3 September 2018
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