CodeBase - Strong Gravity

Return to the CodeBase listing

Category: 2D Effects

Version: 1.0

0
0

Information

Uploaded: 19th Jul 2006 23:05

Modified: 1st Jan 1970 01:00

Author:  NewGuy

Summary

A ring of dots are created going in all directions and are pull around by the gravity of the red "planets"

Full Description

A ring of dots are created going in all directions and are pull around by the gravity of the red &quot;planets&quot;. This is party a simulation it uses the gravity equasion <br /> G = (GravConstant*M1*M2)/D^2<br /> to calculate how much force the planets exert, but each dot does not effect any other dot and does not get destroyed when it hits a planet (making what looks like sparks). This demonstration creates a cool effect and is commented. <br /> <br /> If you use this code or it helps you please give credit, and feel free to leave a comment<br /> <br /> Click the mouse to make new dots<br /> it will restart (with new dots) if they all get destroyed

Comments

No comments yet.