
294 Chapter 13 Generating Contacts
struct PrimitiveSet : extends Primitive
{
std::vector<PrimitiveInSet> primitives;
};
13.2 Contact Generation
As seen at the start of this chapter, there is an important distinction to make between
collision detection and contact generation:
Collision Detection: Determines if a pair of objects are interpenetrating. Often
the algorithms used allow the collision detector to return a penetration depth
and a point of collision. Typically, they will only detect one such point for a pair
of primitives.
Contact Generation: Determines if a pair of objects are interpenetrating and
returns a set of contact data if they are. The