Most viewed recipes tagged "applet" and "physics"http://code.activestate.com/recipes/tags/applet+physics/views/2010-03-26T17:50:43-07:00ActiveState Code RecipesGravity Simulation Applet (Java)
2010-03-26T17:50:43-07:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/577151-gravity-simulation-applet/
<p style="color: grey">
Java
recipe 577151
by <a href="/recipes/users/4172570/">FB36</a>
(<a href="/recipes/tags/applet/">applet</a>, <a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/physics/">physics</a>).
</p>
<p>It displays the trajectories of N mass particles moving under the force of gravity in 2D space.
The repeating patterns mean particles started orbiting each other.</p>
Gravity Simulation Fractal Applet (Java)
2010-03-26T17:49:13-07:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/577152-gravity-simulation-fractal-applet/
<p style="color: grey">
Java
recipe 577152
by <a href="/recipes/users/4172570/">FB36</a>
(<a href="/recipes/tags/applet/">applet</a>, <a href="/recipes/tags/fractal/">fractal</a>, <a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/physics/">physics</a>).
</p>
<p>It produces a fractal image from an N particle gravity simulation.
Warning: The calculation takes about a minute!</p>