Adding Relativity to Gravity Animations

gravity_v1

My last entry dealt with lessons learned while building a gravity animation. The animation works just like frames in a movie. Between each frame, the gravitational force between objects is calculated displayed on the screen as “Force”. This force is added to the current motion (momentum) of the object. The motion is added to the prior location of the object to get the new location of the object. […]