Box2D Flash ActionScript Tutorial: Create Pulley Joint
In this Box2D Pulley Joint Physics simulation tutorial, we are going to create a Pulley Joints of the two bodies (Blue Box on the left side and the Danger Box on the right side).
Flash Box2D Physics Simulation Tutorial Content
A Pulley Joint is used to create an idealized pulley. The pulley connects two bodies to ground and to each other. As one body goes up, the other goes down. The total length of the pulley rope is conserved according to the initial configuration.
STEP 2: Create a Pulley Joint of the Two Boxes
The two boxes were created in previous box2D pulley joint physics simulation example, it's time to create a Pulley Joint in this example. The density of the Danger Box was higher than the Blue Box. Therefore the Danger Box will be moved down by 50 pixels and the Blue Box will be moved up 50 pixels to make the system balance.
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 Flash Physics Engine show how to create pulley joint physics simulation.