- Home /
Mesh Collider issues
so my partner has created various mesh objects in Unity and they have mesh colluders attached to them.
Now with these objects the player can walk around them and cannont walk through them and the enemies can not walk through them, however our bullets sometimes collide with the mesh and sometimes don't, This is weird as they should collide all the time, what is causing this problem?
The bullets are ridgedbody Primative colliders and the environment is made up of mesh colliders..
Please help
Answer by Meltdown · Mar 12, 2012 at 09:27 PM
You can try attaching this script to your bullets.
Another thing you can try is scaling your world larger. That can help with collision detection. Also try use primitive colliders where possible instead of mesh colliders.
Sorry for the long delay with the acceptance of this solution, have been super busy. The end solution was that we changed all colliders to primitive ones due to the speeds of the physics in game.
Answer by Eric5h5 · Mar 12, 2012 at 05:43 PM
They won't collide if they're going too fast. You can use continuous collision instead of discrete. (This has to be applied to all objects that the bullets interact with, not just the bullets.)
They aren't moving that fast, they are just small, and I've tried continuous
Your answer
Follow this Question
Related Questions
Mesh Collider Issue 3 Answers
Mesh Collider Won't Work After Running Another Collider 2 Answers
Mesh Collider with multiple meshes? 1 Answer
problem in Archery game 1 Answer
[SOLVED] Why is this procedurally generated mesh not colliding? 2 Answers