Home | Flash AS3 Tutorials | Flash Animation Tutorials | Store

Crank and Piston Box2D Flash Physics Simulation: Finalize the Piston and World System

We Finalize the Box2D Crank and Piston physics simulation by adding some graphic to make the system more realistic.

Please update flash player to view this Flash ActionScript tutorial!

Flash Box2D Physics Simulation Tutorial Content

A Prismatic Joint in Box2D physics simulation allows for relative translation of two bodies along a specified axis. A prismatic joint prevents relative rotation. Therefore, a prismatic joint has a single degree of freedom. In this example, we will use Prismatic Joint to limit the motion of the Piston to move up and down only.

STEP 7: Finalize the Crank and Piston System
To make the Crank and Piston physics simulation system more interesting and more realistic, we add some graphics on the stage.

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:

Flash Source File Awaiting to be released.

Remarks:

This Box2D Flash ActionScript Physics Animation tutorial shows how to create prismatic joint. Step 7: add some graphics to the crank and piston physics simulation system.