Box2D AS3 Flash Car Animation: Create Revolute Joint between Car Body and Tires
All parts are ready. It's time to glue them together and let the car run. We use Box2D Revolute Joints to joint the Car body, Rear Tire and Front Tire. In a real world a car need power to run. In this example, we add a motor drive to the Rear Tire.
Flash Box2D Physics Simulation Tutorial Content
STEP 4: Create Revolute Joints Between Car Body and Tires
Now all parts are ready and are in position. It's time to join them:
Revolute Joint with Motor Drive (Rear Tire and Car Body)
Use Revolute Joint to glue the Rear Tire and Car Body to-gether. The car need power to drive along the road. Therefore a motor drive is add to this Revolute joint.
Revolute Joint (Front Tire and Car Body)
Use Revolute Joint to glue the Front Tire and Car Body to-gether. This Revolute joint do not need motor drive. Because a motor drive at the Rear Tire is enough.
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.
Remarks:
This Box2D Actionscript tutorial shows how to create a running car simulation. Step 4: Create Revolute Joint between Car Body and Tires.