Following WheelCollider Tutorial tutorial I’ve got wheels flipping like coins.
How it looks in the editor:
This is how it looks in a game:
(why position values always changing while car is not moving ?)
Position of front left empty object (front left wheel):
Position of cylinder for front left wheel:
I tried to change rotation field for visual wheels but game mode always sets Z Rotation to 0.
During drive, rotation of visual wheel happening around X axis.
What I did was to put the visual wheels object (which were just built-in unity’s cylinders) on a empty parent, and rotate my wheel meshes inside the wrapper parent, but leave the parent with the transform reset.
Then I removed the colliders in the cylinders object, because of this the car didn’t move. After all we already have a WheelsColliders in the grandparent of the visual wheel gameobject.
To stop the wobbling effect in the wheels I first fixed X-Axis rotation on the rigidbody of the car root element.
I think that tutorial needs some editing, but well, this is as far I could get. If anyone has more idea on car controlling and can shed some light here, I’d be really grateful.