Difference between revisions of "Accelerometer:getAcceleration"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.8<br/> === Description === <br /> Returns the 3-axis acceleration measured by the accelerometer.<br /> <br /> <source lang="lua">...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
(number) (number) (number), = Accelerometer:getAcceleration()
+
(number), (number), (number) = Accelerometer:getAcceleration()
 
</source>
 
</source>
 
'''Returns''' (number) acceleration on x-axis in G's<br/>
 
'''Returns''' (number) acceleration on x-axis in G's<br/>
 
'''Returns''' (number) acceleration on y-axis in G's<br/>
 
'''Returns''' (number) acceleration on y-axis in G's<br/>
 
'''Returns''' (number) acceleration on z-axis in G's<br/>
 
'''Returns''' (number) acceleration on z-axis in G's<br/>

Revision as of 10:20, 23 August 2018

Available since: Gideros 2012.8

Description


Returns the 3-axis acceleration measured by the accelerometer.

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

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