I have created a cylinder and scaled it to look like a wheel, when I add wheelcollider to it, it never aligns with the orientation of the cylinder.
Why is this happening, is there a solution?
I have created a cylinder and scaled it to look like a wheel, when I add wheelcollider to it, it never aligns with the orientation of the cylinder.
Why is this happening, is there a solution?
You don't add wheel colliders to wheel models, if the wheel model rotates it'll mess up the wheel colliders as they are actually just rays pointing down.
Create a body for the car and give it 4 children to store each wheel model and another 4 children to store 1 wheel collider each.
If you want the wheel models to rotate you can use transform.Rotate() on the wheel models based on the wheel collider rpm variable.
This is a good tutorial if the official unity one is a bit too long for you: