Tags

Tuesday, September 28, 2010

particle system demonstrating forces

Here's an applet that simulates some forces acting on particles of identical mass. In addition to being attracted to each other (due to, say gravity), they also repel each other, and the interaction between those forces makes them bounce around (oscillate). There is no friction in this simulation, so they'll keep moving around forever...





































This browser does not have a Java Plug-in.



Get the latest Java Plug-in here.














Source code: attraction draw



Built with Processing


No comments:

Post a Comment