so if I were to have a moon orbit a planet..
moon.x = planet.x+cos(degreestoradians(angle))*radius
moon.y = planet.y-planet.y-sin(degreestoradians(angle))*radius
But what should angle be? and how do I convert degrees to radians?
sorry for my noobishness!
-Matt
moon.x = planet.x+cos(degreestoradians(angle))*radius
moon.y = planet.y-planet.y-sin(degreestoradians(angle))*radius
But what should angle be? and how do I convert degrees to radians?
sorry for my noobishness!
-Matt