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)
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)
:: Copyright KIRUPA 2026 //--
``` ```