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°...
thanks
Develop games in your browser. Powerful, performant & highly capable.
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.
thanks a lot