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

Create a way to get the controller's orientation #7836

Closed
RadiantUwU opened this issue Sep 24, 2023 · 1 comment
Closed

Create a way to get the controller's orientation #7836

RadiantUwU opened this issue Sep 24, 2023 · 1 comment

Comments

@RadiantUwU
Copy link

Describe the project you are working on

A library meant for mobile XR games which uses a bluetooth controller.

Describe the problem or limitation you are having in your project

Getting the controller's orientation/gyroscope/acceleration.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

This would allow the programmers to get the controller's specific orientation/acceleration etc, which could be used in racing games or in menus.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

get_joy_accel(device: int) -> Vector3
get_joy_gravity(device: int) -> Vector3
get_joy_gyro(device: int) -> Vector3

If this enhancement will not be used often, can it be worked around with a few lines of script?

No.

Is there a reason why this should be core and not an add-on in the asset library?

This is so you can focus more on making your game other than finding the correct addon for what you're trying to make.

@Calinou
Copy link
Member

Calinou commented Sep 25, 2023

Thanks for the report! Consolidating in #2829.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants