Tuesday, August 12, 2008

Atom Swing

Imagine a sign, tacked to a fence at four corners. What if all but one tack came loose. The sign would then swing down from that pivot corner. In real life, the sign would swing back and forth until it ran out of momentum. In these pieces, however, I'm keeping the model really simple and just rotating the square (on a pivot point) until it hangs straight down. Once the corner diagonal to the pivot corner is pointing down, the square is ready to drop.

In Atom Swing 1, the animations are triggered by mouse events.

In Atom Swing 2, the events are triggered by timer events.

Note: Be sure to check out Oscar Trelles work on AS3 and registration. The only reason I didn't use it here, was because I wanted to play and see what I'd figure out on my own....yes, I do enjoy reinventing the wheel from time to time.

0 comments: