How to create an input of the orientation of the user screen? As if it were a steering wheel

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Neosss

I don’t know how to explain my problem well since he didn’t find much material about what I want to do

Basically I would like to know how I can get the orientation of the user’s mobile screen and use it as input

I exactly want the player to be able to use their mobile screen as if it were a steering whee, like a racing games in android.

I don’t know what kind of documentation I should look for in order to use the mobile gyroscope in godot.

Any idea for a start?

:bust_in_silhouette: Reply From: njamster

I don’t know what kind of documentation I should look for in order to use the mobile gyroscope in godot.

I’ve never used it, but take a look here. That should be everything you need?

Yep, i used get_gyroscope and get_accelerometer and works

Thanks

Neosss | 2020-04-21 16:54