x


Rigidbody SweepTest doesnt work for mesh collider?

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

more ▼

asked Oct 31 '10 at 03:46 PM

michele gravatar image

michele
61 5 5 14

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?

Nov 12 '10 at 05:04 PM NGGS

1) no 2) no 3) no i mean that i replaced it with a sphere collider

Nov 15 '10 at 02:54 AM michele

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.

Jan 30 '11 at 08:24 AM Bunny83

My mesh collider is set to "convex" but this doesnt help. I think that Rigidbody SweepTest is not supprted for mesh colliders.

Feb 04 '11 at 05:23 AM michele
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

it seems that PhysX doesnt support mesh or convex mesh rigidbody sweep tests. http://www.esenthel.com/wiki/index.php?title=Actor

more ▼

answered Dec 22 '11 at 12:01 PM

michele gravatar image

michele
61 5 5 14

(comments are locked)
10|3000 characters needed characters left

This should work. If it still doesn't work please file a bug report.

more ▼

answered Jul 21 '11 at 09:52 AM

Ricardo Arango gravatar image

Ricardo Arango
628 10 13 26

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1782
x1683
x1355
x14

asked: Oct 31 '10 at 03:46 PM

Seen: 1986 times

Last Updated: Dec 22 '11 at 12:01 PM