|
it seems that Rigidbody.SweepTest doesnt work for mesh collider. Replacing it with a primitive collider it works. Is this an expected behavior? UPDATE 11/10/2010 Im still waiting for a reply
(comments are locked)
|
|
it seems that PhysX doesnt support mesh or convex mesh rigidbody sweep tests. http://www.esenthel.com/wiki/index.php?title=Actor
(comments are locked)
|
|
This should work. If it still doesn't work please file a bug report.
(comments are locked)
|

I'm having the same problem with SweepTest. Just to see whats the same and whats different: Is your meshcollider set as a trigger? Do you have it in a layer?
When you said you replaced it with a primitive collider, do you mean one of the Physics.***Cast such as SphereCast or CapsuleCast?
1) no 2) no 3) no i mean that i replaced it with a sphere collider
Meshcollider always make trouble, because they aren't supported in all cases due to performance. Two rigidbodys with meshcollider can't collide either. If you set one Meshcollider to "convex" it works. I think that could also help in this case, but not sure and not tested. It also depends on if you can live with the convex shape of your meshcollider. If not you can use some primitive collider to form a compound collider of your shape.
My mesh collider is set to "convex" but this doesnt help. I think that Rigidbody SweepTest is not supprted for mesh colliders.