Help Making a player controller similar to the one in Wii Play Tanks

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

So I’ve recently started learning the Godot engine and have taken up a fun little project. I’ve been trying to make a small remake of Wii Tanks. I have run into problems making the tank controller, mostly the rotation and movement locally. (mainly using xbox controller)

The rotation is difficult because it seems like using angles is not working well. i’ve been trying to get the angle from the joystick and rotate the player based on that angle using interpolation which does not work well. I have not figured out how to use transform.basis yet, even though that seems like the only solution.

The movement in wii tanks allows you to rotate towards the direction your joystick is pointing and only move you forward making you be able to have full control. Any ideas for how I can rotate the player well and only apply movement on the z axis?