InputSingleton.getGravity

Returns the gravity of the device's accelerometer sensor, if the device has one. Otherwise, the method returns constant Vector3.ZERO. Note: 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 g (~9.81 m/s²).

struct InputSingleton
@nogc nothrow const
Vector3
getGravity
()

Meta