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

Flash Animation for Physics with Box2D AS3: Fall Diamond Body Physics Simulation

In this flash animations for physics with Box2D AS3 tutorial, we will use Box2D physics engine to simulate the falling down of a diamond object

Please update flash player to view this Flash ActionScript tutorial!

Flash Box2D Physics Simulation Tutorial Content

With Box2D physics simulation engine, you can use any irregular body to do flash physics animation. However you have to define the vertex of the polygon. In this physics animation tutorial, we use a diamond to do the simulation.

To do flash physics simulation with irregular body, we have to calculate the co-ordinate of each vertex. The co-ordinate of each vertex is calculated from the center point of the body. Here's the vertex co-ordinate of the diamond:

Vertex of Diamond Body

Flash Box2D Physics Engine 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 Flash Box2D Physics Engine ActionScript tutorial show how to simulate a diamond falling down.