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!
retagged 3dmax to 3dsmax. Greetz, Ky.
Answer by alexnode
Apr 20, 2010 at 10:47 AM
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.
Great, it worked in addition to the other answer I got. Dummies helped me in other stuff as well.
Answer by spinaljack
Apr 20, 2010 at 10:04 AM
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
Yea that worked thanx!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
1 Person is following this question.
I want if I can make the BSP in 3Ds Max
Should I export my room with all the objects in it or rearrange in Unity?
3ds max could not be found (.max asset in project)
Front wheel joint disallowing turning.