home page icon Flash Bestiary / Physics / Wheel of Trinkets
   

Wheel of Trinkets

This movie is a (significant) modification of the previous movie (clumping). Here I'm using a simpler collision algorithm that doesn't allow the balls to intersect at all, and I'm keeping them inside a rotating circle with gravity.

Why? I'm trying to figure out the physics behind a kaleidoscope object cell. In nicer kaleidoscopes, you are looking at an oil-filled chamber filled with trinkets.

This is a 2d-representation of a kaleidoscope object cell (without the kaleidoscope effect). Flash is too slow to do a decent kaleidoscope using this technique, but I intend to make an OpenGL version of this program, using 3D physics, which will make for a very realistic kaleidoscope simulation.

 

sourcecode iconDownload the flash project
book iconJim's Favorite Actionscript Books
wiki iconAsk Jim about Actionscript
Next: Springy Thingies

Having trouble opening the project? You may need to Upgrade to Flash MX 2004



Copyright © 2003,2004 by Jim Bumgardner. All Rights Reserved.        Leave Jim some feedback