Recent content by archieab
-
Converting PyGame 2 axis joystick float to 360 angle
Managed to solve the issue doing some extra research. Thanks for the reply.- archieab
- Post #3
- Forum: Programming and Computer Science
-
Converting PyGame 2 axis joystick float to 360 angle
I would like to convert my joystick's two axis float (horizontal and vertical) to a 360 angle that can be used to set a players direction in my game. From my research, I've found the best route to take is using Atan2. Variables: self.rot = 0 horaxis = joy1.get_axis(0) veraxis = joy1.get_axis(1)...- archieab
- Thread
- 360 degrees Angle Axis Float Python
- Replies: 2
- Forum: Programming and Computer Science