Converting Degrees to X and Y Coordinate change
- by gopgop
I am using a float positioning system in my game. IE float x,y,z
now I want to get the location of the mouse, then to fire an arrow to it.
X0 = the players X location
X1 = the mouse X location
Y0 = the players Y location
Y1 = the mouse Y location
I want to make a method that the parameters are Degrees and it sets my Yspeed and my Xspeed accordingly to get to the mouse xy starting at player xy
How do would I accomplish this?