- Home /
How to fix Unity 5 Mesh Collider Convex Problems?
This is what is happening to my imported FBX file:
The problem is that I want to collide with this pipe, but I end up colliding with it even when I haven't touched the actual pipe. I tried finding some solutions online but nothing really helped. Obviously it's because the convex is messed up, but I'm kind of a beginner with all this stuff so I'm not really sure how to fix it. Does anyone know any possible solutions? By the way, I created the pipe using Blender.
Thanks!
Answer by Cherno · Jul 24, 2015 at 11:11 AM
I don't see how "the convex is messed up". If the collider that should collide with the pipe is convex, then teh pipe's collider doesn't have to be convex. Only one collider needs to be convex for a collision to register. Apart from that, you can always use compound colliders. Attach multiple collider components to the pipe and position, scale and rotate them so they approximate the shape of the pipe. These can be convex.
Thanks Cherno! I actually tried doing what you said before I posted this question and it didn't work, but I just tried again and it works beautifully. I'm pretty sure I had forgotten to attach a Collider or Rigidbody to one of the objects. Thanks so much for your help!
EDIT:
Nope, still not working. I want a ring to go around it and only trigger it if the edge is hit (kind of like a wire loop game) but it triggers it even when it doesn't touch it. Right now the ring has the mesh collider.
So when I lead it through it still collides.
EDIT 2:
Ok I just added a couple of capsule colliders around the band and now it works haha. Thanks again for your help :)
If it indeed helped you, consider accepting the correct answer :)
Your answer
Follow this Question
Related Questions
Convex mesh collider thinks model is non manifold but it isn't 1 Answer
Use blender to turn on Mesh Collider Convex 0 Answers
Trouble With Imported Model Collider 0 Answers
Concave Trigger on Mesh 1 Answer