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

Add a function to get the controller orientation info. #7342

Closed
RadiantUwU opened this issue Jul 20, 2023 · 1 comment
Closed

Add a function to get the controller orientation info. #7342

RadiantUwU opened this issue Jul 20, 2023 · 1 comment

Comments

@RadiantUwU
Copy link

RadiantUwU commented Jul 20, 2023

Describe the project you are working on

A VR test area for mobile users.

Describe the problem or limitation you are having in your project

Being unable to get the connected controller's orientation to be used in menus.

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

This feature would allow me to build up menus using the controller's orientation to project a ray on the screen and show what the player would be pointing at.

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

Input.get_joypad_gyroscope(device: int) -> Vector3

returns Vector3.ZERO if the device does not have a gyroscope sensor.

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 should be core so not only VR games use this, but also othet games for things such as racing, steering a car for example is another use case for the controller's gyroscope.

@Calinou
Copy link
Member

Calinou commented Jul 20, 2023

Thanks for the proposal! 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