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?
Collision with interior of a collision shape.
-
- Posts: 49
- Joined: Sun Jan 29, 2012 10:01 pm
Re: Collision with interior of a collision shape.
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.
-
- Posts: 7
- Joined: Thu Mar 01, 2012 10:07 pm
Re: Collision with interior of a collision shape.
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.