I’m trying to implement an onscreen joystick to control a 3D avatar’s movement.
However when I push the joystick 90 degrees, the 3D avatar doesn’t move forward, instead it rotates and moves to the right.
And when the avatar rotates towards a different direction, pushing the joystick 90 degrees results in the avatar again changing to a different direction.
I’ve included a drawing showing the fixed joystick and the above situation.
How can I have the avatar’s direction always match the joystick’s rotation / direction?
Thank You!