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?)
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:
Is it also true for shape definitions?
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;
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?