Playing with Balls

I’ve been messing around with physics engines in AS3 for a while now. My favorites are APE and Box2D, both have their pros and cons. APE is much simpler to use and understand where Box2D is more advanced. Box2D has support for throwing particles and rotations, but it’s all based on metrics, so you have to adjust for pixels.

Here is a little experiment I’ve been playing with and optimizing using APE. Enjoy.

My APE Balls

Flash Source Code This requires the APE engine in your classpath to compile.

— April 24th, 2008

2 Responses to “Playing with Balls”

  1. erat says:

    Niiiiice… Very nice.

    When I get home I’m going to view this and leave it running. I want to see if the jittery balls end up bouncing out of the stage. Every now and then it almost looks like it can happen. :)

  2. Paul Mayne says:

    That could happen. Also, the walls on the side are only like 1600 pixels high, so if you keep bouncing them up some get lost from the middle part that is visible.