Closed elmarti closed 2 years ago
The atan2 value is a radiand for the direction of the joy stick, I guess these numbers refer to the axes.
The values refer to the 45 degree corner points, as that is the point where one direction changes to another.
1 year down the line, not sure what these values are, need to reverse engineer them and name them.
https://github.com/elmarti/react-joystick-component/blob/58a1bd79005b5cb72c12f1b77128c1dc3a6f0cbb/src/Joystick.tsx#L129