Page 1 of 1

Attraction and Repulsion

PostPosted: July 10th, 2006, 5:46 pm
by PHY
This simple simulation shows how to create two object follow the 3rd one (in this case, mouse pointer)

2 balls that repel each other that are attracted to the mouse. Also some really simple collision detection.

This simulation shows how you can simulate cloth movement. Use mouse to drag from corners.

[japplet_start code="boucyballs" width=400 height=400 codebase="/forums/misc/java/" archive="boucyballs.jar"][/japplet_start]
[japplet_param name="boxmessage" value="Loading, Please wait . . ."][/japplet_param]
[japplet_param name="boxbgcolor" value="#FFFFFF"][/japplet_param]
To view this content, you need to install Java from <A HREF=""></A>

Author : james corbett.
This Java Applet built with processing and traer.physics