O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a physical car with JigLib

One of the most popular scenarios where you would like to integrate physics is a racing game simulating physical driving behavior. In this case, each car should become a physical body which contains built-in functionality of a car and reacts to the forces applied to it by the environment. Those of you who are not fond of complex physics, and I bet most of you are not, would not wish to write a physical model for a car from the ground up. So here is the good news, JigLibFlash has got a generics JCar class which allows you to set up (rig) your physical car relatively easily. Let's see how to do that.

Getting ready

Set up a basic Away3D scene using AwayTemplate.

If you still have not downloaded and connected to your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required