Collision with interior of a collision shape.

Post Reply
Ebon
Posts: 3
Joined: Thu Apr 12, 2012 11:54 pm

Collision with interior of a collision shape.

Post by Ebon » Thu May 24, 2012 5:22 pm

If I wanted to make something like a fish bowl, a spherical container, could I use the spherical collision object to keep objects inside the bowl?

I haven't seen anything to support this in the documentation, but it seems to me that the algorithms should be fairly similar to those used for "external" collision, or am I missing something?

CookieMonster
Posts: 49
Joined: Sun Jan 29, 2012 10:01 pm

Re: Collision with interior of a collision shape.

Post by CookieMonster » Tue May 29, 2012 1:58 pm

The inside would be concave and can't use convex to convex collision algorithms. It would be easier to just have a btBvhTriangleMeshShape and keep it static.

alex-weej
Posts: 7
Joined: Thu Mar 01, 2012 10:07 pm

Re: Collision with interior of a collision shape.

Post by alex-weej » Tue May 29, 2012 4:33 pm

If CD is possible between any two given shapes, inverting one of them (swapping 'inside' for 'outside') would just mean that colliding circumstances before become non-colliding and vice versa. Sensible contact generation would probably be a little more involved, though.

Post Reply