Converting Degrees to X and Y Coordinate change

Posted by gopgop on Game Development See other posts from Game Development or by gopgop
Published on 2012-12-03T09:31:55Z Indexed on 2012/12/03 12:08 UTC
Read the original article Hit count: 238

Filed under:
|

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?

© Game Development or respective owner

Related posts about vector

Related posts about location