Skip to content

Gyroscope, Magnetometer, and Gravity All Return Zero Vector on Android #34980

Description

@cybereality

Godot version:
3.1.2 Stable (Steam)
3.2 Beta 5

OS/device including version:
Amazon Kindle Fire 7
Lenovo Tab 4

Issue description:
These functions all return Vector3(0, 0, 0):

var grav = Input.get_gravity()
var mag = Input.get_magnetometer()
var gyro = Input.get_gyroscope()

This does still work:

var acc = Input.get_accelerometer()

Steps to reproduce:
Just place the above code in a project and export for Android (you can print the values)

Minimal reproduction project:
Download the "Sensors" demo from the Asset Library. It shows the problem perfectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions