i have some simple enemys in my game that have two variables, an xspeed and a yspeed. Is there any way to get a rotation for the enemy from those values. Something like this: _rotation=Math.tan(yspeed/xspeed)
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Converting a rotation angle to a direction of motion | 0 | 118 | May 1, 2011 | |
Getting direction of bullet based on angel of something | 0 | 285 | March 26, 2014 | |
Rotation Easing really is getting me down :( | 0 | 75 | September 20, 2007 | |
Why would the speed of my 'Enemy' increase over time? | 0 | 185 | December 5, 2012 | |
Enemy Rotation | 7 | 51 | June 11, 2008 |