diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-17 14:27:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 14:27:23 +0100 |
commit | 7b223e8eec068a21d42eff5815c05a7006e21c2f (patch) | |
tree | e5a72d87368ea73731dcea88a1be646094610bb3 /doc/classes | |
parent | a851b72354c67af2693f02e636b75ffb67df66fd (diff) | |
parent | fda2743fef8fbcf0ba5fb4ac93a613ad61735fff (diff) |
Merge pull request #47080 from mbrlabs/ios-sensor-conversion
Converted sensor acceleration units to m/s² on iOS and UWP
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Input.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index 50a675e8db..977f2bb565 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -49,9 +49,9 @@ <return type="Vector3"> </return> <description> - Returns the acceleration of the device's accelerometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. + Returns the acceleration in m/s² of the device's accelerometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. Note this method returns an empty [Vector3] when running from the editor even when your device has an accelerometer. You must export your project to a supported device to read values from the accelerometer. - [b]Note:[/b] This method only works on iOS, Android, and UWP. On other platforms, it always returns [constant Vector3.ZERO]. On Android the unit of measurement for each axis is m/s² while on iOS and UWP it's a multiple of the Earth's gravitational acceleration [code]g[/code] (~9.81 m/s²). + [b]Note:[/b] This method only works on iOS, Android, and UWP. On other platforms, it always returns [constant Vector3.ZERO]. </description> </method> <method name="get_action_raw_strength" qualifiers="const"> @@ -106,8 +106,8 @@ <return type="Vector3"> </return> <description> - Returns the gravity of the device's accelerometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. - [b]Note:[/b] This method only works on Android and iOS. On other platforms, it always returns [constant Vector3.ZERO]. On Android the unit of measurement for each axis is m/s² while on iOS it's a multiple of the Earth's gravitational acceleration [code]g[/code] (~9.81 m/s²). + Returns the gravity in m/s² of the device's accelerometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. + [b]Note:[/b] This method only works on Android and iOS. On other platforms, it always returns [constant Vector3.ZERO]. </description> </method> <method name="get_gyroscope" qualifiers="const"> |