Game Maker's Garage Forum

Game Maker's Garage => Trash Talk => Topic started by: Gan on March 05, 2009, 07:09:39 PM

Title: A bit of Trig. help.
Post by: Gan on March 05, 2009, 07:09:39 PM
How do you get the rotation of one object orbiting another?

Let's say a moon is orbiting the earth on a 2d plane, what's the equation to get the moon's rotation around the earth?


-Gandolf
Title: Re: A bit of Trig. help.
Post by: Charlo on March 06, 2009, 08:02:38 PM
I took trig just last year but I can't figure out what you're asking.  What do you mean by rotation?  
Title: Re: A bit of Trig. help.
Post by: Gan on March 07, 2009, 08:03:49 AM
Here's a little picture to show what I mean:

(http://i212.photobucket.com/albums/cc304/mattcomwiz/example.png)

Trying to find the degrees of rotation of the small ball at random points around the large ball.

-Gandolf
Title: Re: A bit of Trig. help.
Post by: Gan on March 07, 2009, 08:33:13 AM
Yes! It works!


-Gandolf
Title: Re: A bit of Trig. help.
Post by: Tireas Dragon on March 08, 2009, 11:36:17 PM
I still don't understand the question.
If you are trying to find the degrees wouldn't you just use a protractor.