AS3 basic physics engine.