Page 1 of 1

Collision with interior of a collision shape.

Posted: Thu May 24, 2012 5:22 pm
by Ebon
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?

Re: Collision with interior of a collision shape.

Posted: Tue May 29, 2012 1:58 pm
by CookieMonster
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.

Re: Collision with interior of a collision shape.

Posted: Tue May 29, 2012 4:33 pm
by alex-weej
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.