Car Movement: wheels can steer but car body cant move

Software: Away3D 4.x

emmie55, Newbie
Posted: 25 September 2013 03:28 PM   Total Posts: 10

hi, sorry for the repeated post. (NOOB)..lol so Im new with awayphysics and was trying the example shown here: https://github.com/lo-th/loth_labs/blob/master/src/Intermediate_Car.as

using the assets library i can view my model and steer the wheels(front) and i cant move the car. I am not sure why. The main difference between the example and mine is that my 3d model(body) is only one mesh and the wheel is another in a separate file (.AWD)

   

John Brookes, Moderator
Posted: 25 September 2013 04:05 PM   Total Posts: 732   [ # 1 ]

Your carBody needs a mass.
Setting mass to 0 means its static so wont move.

var carBody:AWPRigidBody = new AWPRigidBody(carShape, content, 10);

   

emmie55, Newbie
Posted: 26 September 2013 03:32 AM   Total Posts: 10   [ # 2 ]

thanks for the respond! Yup that worked! :D

   

emmie55, Newbie
Posted: 26 September 2013 05:46 AM   Total Posts: 10   [ # 3 ]

.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X