I had originally made this for someone on these forums. It was somewhat incomplete so I decided to finish it and here is what I got. Just fool around with the settings. You can open the FLA file and adjust the number of magnets and balls which get attached.
Enjoy :hoser:.
That´s a great effect!
how can I add some pictures and instead of circles make the area of colision squares?
pretty nice i think i might work on a gravity engine, this could be made to make some intresting stuff, besides some of the minor glitches like it flipping out and jumping all over the place, i would much rather see that the gravity pull is soo strong that it cracks and incinerates or breaks into 2 smaller balls and get sucked into an object, also i think it would be cool to add maybe a gravitional pull to the balls, and turn the background into a dark black world