- Home /
Wheelcolliders falling through ground
Hello,
I need some help with wheel colliders. I have made a car model in blender and imported it to unity. There I have attached four wheel colliders, one for each wheel, everyone in a single empty game object parented to the main car object. I have aligned them so the sit around the edge of the wheels.
I have a terrain also made in blender that the car rides on that has a mesh collider. If I only drive along the surface the wheel colliders work but if the car is dropped from some height or is trying to turn to rapidly, some or all wheels go through the mesh collider. It seems to be a problem not only with meshcolliders since I have a unity terrain object also in my scene and it acts the same way there.
I've tried to work around the problem using a second collider in a sibling object to every wheel collider, of type spherecollider that uses a frictionless physics material however these colliders dont react nicely with the kinks in the meshcollider suddenly just stopping and such.
The only suggestion that I can come up with regarding whats happening is that the verts in the mesh collider is spread out, my ground mesh is quite low poly, so that the wheel collider has trouble finding it.
If anyone has any thoughts I'd appreciate it!
Answer by Dead_Man2001 · Mar 29, 2016 at 04:45 PM
To use the wheelcollider, you need to have a rigidbody attached to the wheel and a fixed joint attaching it to the car. It should work once you do that.
Your answer
Follow this Question
Related Questions
Wheel has no friction on mesh collider of another GameObject. 0 Answers
Unity 5.0 and alternative for triggering complex meshes. 2 Answers
Im using the 2d wave mesh asset..how do I make an object float on the wave? 0 Answers
Rigidbody slowly falling through mesh collider 0 Answers
enabling mesh collider for rigidbody screws up everything 0 Answers