center of object

I am bringing in a jeep from .3ds and it has wheels parented to the body of the car. Even if I unparent them

The wheels are in perfect position on the model but think they are at 0,0,0 and the pivot point is at 0,0,0.
rotating them produces weird results because they are rotating around the pivot.

So how do permanently move the pivot point in Unity3d to the center of mass of the wheel using a script.

I’m hoping I don’t have to do it in the .3ds model because then I have to manually position each wheel using the x,y,z in the model and upon trying it the wheels do not go to the right positions?

So I’m hoping there’s a way to recenter an object’s pivot point in unity3d using some javascript command???

PS. using the pivot center toggle button does not change anything. I need a solution that will permanently move the pivot point so that when you click pivot/center it will be the same point.
Thanks,

Dan

The easiest way I can think of would be to add empty gameobjects to your scene where the wheels are, then parent the game objects to the wheels. Then, move/rotate the parent game object.

That is a model issue, not unity’s. Detach the wheels hten make sure to reset Xform, and scale in 3ds max. then set pivot to center of the object.