Box2D AS3 Create Distant Joint Tutorial: Create Distance Joint with Anchor at Lower Box
We already got enough information to create Distance Joints between the two boxes for Box2D AS 3 Physics simulation.
Flash Box2D Physics Simulation Tutorial Content
STEP 5: Create Distance Joint with Lower Box as Anchor Point
You can decide which box act as the anchor point (i.e. static point). We have two choices, make the lower box as the anchor point and let the upper box fall down, or the reverse. We will try them both in our tutorials.
In this Box2D AS3 tutorial, we use the lower Danger box as the anchor point and let the Upper box falling down. See how the distance between two points (center points) on two bodies keep constant.
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 Actionscript Flash Physics animation tutorial shows how to create distant joints physics simulation. Step 5: Lower Danger box as the anchor point.