Game Development Reference
Figure 2.4. Compound geometries can cause artifacts when objects get stuck in between
is no good solution to this, but avoid using many small objects to make up com-
pound bodies. In the case above, a capsule or cylinder would have avoided the
Figure 2.5. An object sliding over a compound geometry can catch on invisible hooks
due to penetration.
Sliding. A similar problem can occur when an object is sliding over a flat surface
that is made up of multiple parts. Imagine the scene in Figure 2.5. The box
should ideally slide over the seam without any glitches, but they way the object
is constructed, the seam can create invisible “hooks” causing the sliding object to
Figure 2.6. Making a ramp on each side and letting them overlap is a simple work-around
to avoid objects getting stuck in compound objects.