Nov 282010
 
Going back to using WCK (World Construction Kit) and Joints, I thought I would post some more info, as someone looking at the blog post was having problems and needed some more visuals. So here are some WCK Joints visuals…
Setup
Library
World1
Joint
Ball
Rectangle1
Stage
various Rectangle1 objects (named)
various Joint objects (not named)
One World1 object – all the other objects are inside this object
Drop a couple of Rectangle1 objects on to your stage (but inside the World1 object).
The Ball symbol is what I use for my Joints.
Now, drag over a Joint object, but position it on top of one of the Rectangle1 objects. This step is very important, as the WCK will use this overlap to work out how to make the Joint work.
Click on the Joint object on the stage (which should currently be on top of a Rectangle1 object). Then change the Joint properties as follows…

Did you like this? Share it:
Oct 072010
 

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…

Sep 232010
 

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.