In this post I will show you a simple example of using Flash CS5 , the World Construction Kit, and Joints.
Having created a simple world using the World Construction Kit previously…
The World Construction Kit and Flash Cs5
…I can now play around with the various joints that you are given. For example…
Distance Joints, Revolute joints, Line joints, Weld joints, Mouse Joints, Pulleys, Prismatic joints, Friction joints.
To start with I will just create a Revolute joint and a Distance joint and a Joint that is not a Joint (i.e. type none). To create these all you need are the following…
In the past, when looking for physics simulations in Actionscript 3, I used Box2DFlash. Although it worked very well, the problem was the documentation. It was terrible, and it would take me days to work something out and go through various examples, most of which didn’t apply to the latest version of Box2DFlash, but they were the only examples around.
Eventually I managed get a simple structure together, various boxes moving, bouncing and being able to be controlled by a mouse. I will eventually blog about the example I created as I think it will be a useful exercise for people usingBox2DFlash and for people who wish to see just what is possible in Actionscript 3.