Car Tutorial, Importing from 3D max, Wheels

This is a problem that making me go crazy! I did a car tutorial. Everything went great until i tried importing my own car model from 3D max. I applied the wheelcolliders and the script for turning the wheels, but when i start the game, the wheels rotate about the wrong axis. I know it's probably an issue with the pivot in the 3d Max but i tried centering the pivot for each wheel in Max, changing the upper axis (z or y) and it still won't rotate correctly. HELP! Much appreciated!

more ▼

asked Apr 20, 2010 at 06:36 AM

avatar image

Zeyad Tuffaha
37 16 12 21

retagged 3dmax to 3dsmax. Greetz, Ky.

Jul 14, 2011 at 11:44 PM SisterKy
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

If it's not a pivot point problem. It might be that the script gets the wrong axis, have you tried to rotate another axis in your script.

In Unity a x0.y0.z0 model (rotation) from 3ds max gets imported as 270.0.0 by default. It is the Z-up applications that do that.

If it doesn't work make in unity four cylinders(with collision but no mesh renderer) that they always come with 0.0.0 rotation, apply the script there and put your wheels as children.As far as I know It is impossible to fix completely z-up models. I usually add unity "dummies" to do the work. I try to 'nest' the models under unity dummies. I don't know the tutorial you are talking about but keep in mind that the root object passes the transform to the children so if your root node has a 270 degrees rotation in X that will pass in the children. So you might need to put a unity node as root add the main body as a child, add 4 other unity objects as children of the root, that have the wheel meshes as children.

For static geometry it is OK but when things get more complicated like parenting, animating and rigid bodies I use these dummies to make things work.

more ▼

answered Apr 20, 2010 at 10:47 AM

avatar image

1.1k 72 66 99

Great, it worked in addition to the other answer I got. Dummies helped me in other stuff as well.

May 09, 2010 at 11:00 AM Zeyad Tuffaha
(comments are locked)
10|3000 characters needed characters left

Did you model the wheels with the car? The wheels need to be modelled on their own with the origin point in the centre of the wheels and facing the right way for left and right wheels, at the moment the centre point is somewhere to the side of the wheel (the middle of the car probably) which is why the rotation is off centre.

Hope that helps

more ▼

answered Apr 20, 2010 at 10:04 AM

avatar image

9.9k 27 54 131

Yea that worked thanx!

May 09, 2010 at 10:59 AM Zeyad Tuffaha
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Apr 20, 2010 at 06:36 AM

Seen: 4024 times

Last Updated: Jul 14, 2011 at 11:44 PM