Grabity: A Work in Progress
GRABITY
by Daniel Pirón
Below is a Java applet I am developing that simulates a gravitational system in real time, and allows the user to interact with it. The article that accompanies it can be found in the Queens College Nucleus, a science student science journal with an eclectic array of research related articles by the Students of Queens College CUNY.

Source Files:

CelestialBody - Stores information on the position, velocity, mass, size, and color of a planet/star.
SolarSystem - Stores a set of CelestialBody objects in a doubly linked list structure, and manages most events.
Grabity - The Applet that serves as the drawing board for the solar system. This will also be the place where all of our controls are handled.

GRABITY

Pressing '1' on the keyboard sets - CelestialBody Creation Mode:

Pressing '2' on the keyboard sets - Zoom In/Out Mode:
Pressing '3' on the keyboard sets - View Moving Mode:
Pressing '4' on the keyboard sets - Set Focus Point Mode:
S - Set Focus Point to the Sun...
F - Free Focus Point... (NOTE: Activing View Move Mode also frees the focus)

Hosted by www.Geocities.ws

1