Manifold for spheres

In order to resolve collisions between objects that have volume, we need to learn more about the nature of the mentioned collisions. This additional information is known as a Collision Manifold. A typical collision manifold usually contains the following things:

  • The collision normal
  • The penetration distance
  • A set of contact points

Additionally, a manifold might also contain the following things:

  • Pointers to the colliding objects
  • The relative velocity of the collision
  • Nature of the collision (no collision, colliding, penetrating)

Let's assume that we have two colliding objects, A and B. The collision normal of the manifold between the two, tells us what direction each object needs to move in to resolve the collision. If A moves in ...

Get Game Physics Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.