Difference between revisions of "Accelerometer:getAcceleration"

From GiderosMobile
(creating category test)
(----)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2012.8<br/>
 +
'''Class:''' [[Accelerometer]]<br/>
  
<languages />
+
=== Description ===
 
+
Returns the 3-axis acceleration measured by the accelerometer.
'''<translate>Available since</translate>:''' Gideros 2012.8<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Accelerometer|Accelerometer]]<br/>
 
 
 
=== <translate>Description</translate> ===
 
<translate>Returns the 3-axis acceleration measured by the accelerometer.</translate>
 
  
 
<source lang="lua">
 
<source lang="lua">
Line 13: Line 9:
 
</source>
 
</source>
  
=== <translate>Return values</translate> ===
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>acceleration on x-axis in G's</translate><br/>
+
'''Returns''' (number) acceleration on x-axis in G's<br/>
'''<translate>Returns</translate>''' (number) <translate>acceleration on y-axis in G's</translate><br/>
+
'''Returns''' (number) acceleration on y-axis in G's<br/>
'''<translate>Returns</translate>''' (number) <translate>acceleration on z-axis in G's</translate><br/>
+
'''Returns''' (number) acceleration on z-axis in G's<br/>
<br/>
+
 
 +
----
  
 
{{Special:PrefixIndex/Accelerometer}}
 
{{Special:PrefixIndex/Accelerometer}}

Revision as of 14:25, 2 December 2019

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