Saturday, November 28, 2009

Back to Flash

I've been doing some work in Flash using ActionScript 3.
I've started planning for a whole series of online games that will revolve around a common theme.

So far, I've created some engines including a flexible application page-manager and a pretty cool soft-body physics library that allows soft-body objects to react to physical 'force fields'.

Here's a link (Press any key to reset)

The math used there is fairly heavy. It uses many physical concepts surrounding motion, mass, elasticity (Hooke's law) and linear algebra. It's somewhat physically accurate except for air resistance (I cheated a bit there)... Physicists hate air resistance anyway so who cares.

As you might notice, the body is in a zero-gravity environment with so-called 'air resistance'.
The body is made up of special points of a given mass which react to force vectors, the body itself reacts to 'force beams' which vary in magnitude, area of effect and dissipation effects (distance from source and distance from center of beam).

Obviously there are missing physical elements such as dissipation of force via contact but on the whole it's a nice addition to my portfolio.

No comments:

Post a Comment