hi guys, how could I do that. I have a cannon that can rotate 360°. I would rotate it to the position as the game pad stick is. If It is on 35° also the cannon should be 35°...
Check this answer
It is for the right stick, but then having the same for the left stick is changing the index of the axis you are checking for in the formula.
Develop games in your browser. Powerful, performant & highly capable.
thanks a lot