- Home /
I need help with wheelcolliders
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?
Answer by spinaljack · Jul 09, 2010 at 09:50 AM
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:
The link seems to be broken now. Link to the official tutorial (for Unity 5.3): http://docs.unity3d.com/$$anonymous$$anual/WheelColliderTutorial.html
Your answer
Follow this Question
Related Questions
Skateboard controls 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
i need help with my skateboard physics 0 Answers
Dragging ONE rigidbody 1 Answer