I am making an n-body simulator, but I'm stuck. How can I find the components of the Force acting between two bodies such as the Earth and the Sun. I know it's-(adsbygoogle = window.adsbygoogle || []).push({});

F * Cos(theta) and F * Sin(theta) but if I don't know the angle how can I find the components?

I'm using the diagram on this website but I'm still baffled.

http://www.cs.princeton.edu/courses/archive/spr01/cs126/assignments/nbody.html

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Force components between two bodies

**Physics Forums | Science Articles, Homework Help, Discussion**