Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input.get_accelerometer() and Input.get_gravity() need further description #9275

Open
celyk opened this issue Apr 24, 2024 · 0 comments
Open
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository enhancement

Comments

@celyk
Copy link

celyk commented Apr 24, 2024

Your Godot version:
v4.2.1.stable.official [b09f793f5]

Issue description:
I recently learned that these acceleration vectors have two conventions depending on platform.

Android: This is the proper acceleration of the device in units of m/s².
iOS: Like that but negated and in units of g instead. This is the acceleration of free falling objects relative to the device.

Godot is a mix of both. It uses the negated acceleration in m/s². The docs make no mention of the negation.

URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/class_input.html#class-input-method-get-accelerometer
https://docs.godotengine.org/en/stable/classes/class_input.html#class-input-method-get-gravity

@AThousandShips AThousandShips added the area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository enhancement
Projects
None yet
Development

No branches or pull requests

2 participants