Strange wheel rotation

Hey there!

I’m trying to make a car game, and at the moment i’m working on the wheels.
I want the wheels to rotate when the wheel colliders rotate.

In my hierarchy the car has an empty game object as a child which is holding the optical wheels.

But when i try to rotate the wheels they don’t turn around their own axis, but around the axis of the car, which makes them looking very strange.

Does anyone know how to make the wheels rotate around their own axis, and not around their parents’?

Thanks

You should set the visual wheels as children of the wheel collider objects. In general, if something is rotating, not around it’s centre, you need to make sure it’s transform position is (0,0,0) and change the transform on the parent to get the position you need. However, if you set up the mesh renderers as children of the wheel colliders, you don’t need to rotate them manually.