26 #define B2_NOT_USED(x) ((void)(x))    27 #define b2Assert(A) assert(A)    38 #define b2_maxFloat             FLT_MAX    39 #define b2_epsilon              FLT_EPSILON    40 #define b2_pi                   3.14159265359f    50 #define b2_maxManifoldPoints    2    54 #define b2_maxPolygonVertices   8    59 #define b2_aabbExtension                0.1f    64 #define b2_aabbMultiplier               2.0f    68 #define b2_linearSlop                   0.005f    72 #define b2_angularSlop                  (2.0f / 180.0f * b2_pi)    77 #define b2_polygonRadius                (2.0f * b2_linearSlop)    80 #define b2_maxSubSteps                  8    86 #define b2_maxTOIContacts                       32    90 #define b2_velocityThreshold            1.0f    94 #define b2_maxLinearCorrection          0.2f    98 #define b2_maxAngularCorrection         (8.0f / 180.0f * b2_pi)   102 #define b2_maxTranslation                       2.0f   103 #define b2_maxTranslationSquared        (b2_maxTranslation * b2_maxTranslation)   107 #define b2_maxRotation                          (0.5f * b2_pi)   108 #define b2_maxRotationSquared           (b2_maxRotation * b2_maxRotation)   113 #define b2_baumgarte                            0.2f   114 #define b2_toiBaugarte                          0.75f   120 #define b2_timeToSleep                          0.5f   123 #define b2_linearSleepTolerance         0.01f   126 #define b2_angularSleepTolerance        (2.0f / 180.0f * b2_pi)   137 void b2Log(
const char* 
string, ...);
 
void * b2Alloc(int32 size)
Implement this function to use your own memory allocator. 
void b2Free(void *mem)
If you implement b2Alloc, you should also implement this function. 
b2Version b2_version
Current version. 
void b2Log(const char *string,...)
Logging function. 
int32 major
significant changes 
int32 minor
incremental changes