Flash AS3 Tutorials Center | Interesting Flash Animation Tutorials | Valuing Flash Animation Tutorials | Flash ActionScript and Animation Home

AS3 Beginner Tutorials | AS3 Basic Lessons | AS3 Valuing Courses | AS3 Components Tutorials | AS3 and PHP Interaction Tutorials
AS3 Practical Tutorials | AS3 Animation Techniques | AS3 Transition Effects Tutorials | AS3 Download Upload Files | AS3 Particle Systems
Communication Between Flash Movies with AS3 | AS3 and JavaScript interaction | AS3 Matrix Transformation | AS3 Physics Simulation Tutorials

Crank and Piston Box2D Flash Physics Simulation: Create Prismatic Joint between Piston and World

Now all bodies (Crank, Shaft and Piston) are all joined together with revolute joints. In this tutorial, we use Prismatic Joint to limit the freedom of the Piston.

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 6: Create a Prismatic Joint for the Piston and the World
In this tutorial, we use a Prismatic Joint to join the Piston and the World to-gether. The Prismatic Joint limit the motion of the Piston. It only allows the Piston to move in the y-direction (i.e. up and down) only.

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 6: create a Prismatic Joint to join the Piston and the World