Box2D Flash Physics Animation: Create Revolute Joint Simulation (Box1 Hinge)
When the two bodies are already in the correct position in the world space of Box2D, you can create Revolute Joint between them. You can set the hinge point to any of them. Let's set the hinge point to the yellow-black-strip Danger box in this example.
Flash Box2D Physics Simulation Tutorial Content
STEP 2: Assign Hinge Point to the Danger Box
Since the bodies are already in the correct position, you can create the Revolute Joint between the upper blue box and the lower yellow-black-strip Danger box. In this flash physics tutorial, we assign the hinge point to the Danger box. As you can see the blue box will be revolving around the Danger box.
Flash ActionScript Codes:
Almost all flash source codes on this website are free to download. In order to maintain our website, which includes the developement and maintenance of tutorials, we would appreciate your kind contribution by buying some source files at very small fee. Once we get reasonable amount of incentives from contribution or Advertisement sponsors, the source codes will be released for free to download.
Download Flash Source File:
Awaiting to be released.
This Box2D physics animation shows how to create revolute joints. Step 2: create revolute joint with hinge assign to box 1.