adapting a Unity gravitational script to allow moons
- by PartyMix
I'm using this script: http://wiki.unity3d.com/index.php/Simple_planetary_orbits
to get a solar system going in Unity, but it doesn't seem to support creating bodies that orbit other moving bodies (or I am using it incorrectly).
Any idea about how to modify it so that it does (or just use it correctly)? I've been beating my head against this problem for a couple hours, and I really don't feel like I have any idea what I'm doing.
Thanks in advance.