pairs and proxies..

I am trying to get better acquainted with box2d. So far is seems really nice physics engine;) The documentation seems to be really good (I don't know many libraries in general that have a good documentation), the code comments and so on... 😉

Another question from me though. What are proxies and pairs? (and manifolds?)
Code:
// Collision
const int32 b2_maxManifoldPoints = 2;
const int32 b2_maxPolygonVertices = 8;
const int32 b2_maxProxies = 512;
const int32 b2_maxPairs = 8 * b2_maxProxies;

I can see such settings, but don't know what exactly they are doing. Maybe new comments in the file ? 😉 What are they reflecting exactly?

Besides I have found in the manual:
Quote:
Box2D copies the data out of the body definition, it does not keep a pointer to the body definition. This means you can recycle a body definition to create multiple bodies.

Is it also true for shape definitions?
proxies - represents an AABB in the broad-phase collision algorithm. Each b2Shape has a proxy.
pair - a record created when two proxies overlap.
manifold - the set of contact points for two convex shapes.

Box2D does not keep a reference to any definitions.

Original thread: https://box2d.org/forum/viewtopic.php?t=648