InputGetGravity Method |
Returns the gravity of the device's accelerometer sensor, if the device has one. Otherwise, the method returns .
Note: This method only works on Android and iOS. On other platforms, it always returns . 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 g (~9.81 m/s²).
Namespace: Godot
public static Vector3 GetGravity()
[Missing <returns> documentation for "M:Godot.Input.GetGravity"]