36 #define B2_NOT_USED(x) ((void)(x)) 37 #define b2Assert(A) assert(A) 39 #define b2_maxFloat FLT_MAX 40 #define b2_epsilon FLT_EPSILON 41 #define b2_pi 3.14159265359f 51 #define b2_maxManifoldPoints 2 56 #define b2_aabbExtension (0.1f * b2_lengthUnitsPerMeter) 61 #define b2_aabbMultiplier 4.0f 65 #define b2_linearSlop (0.005f * b2_lengthUnitsPerMeter) 69 #define b2_angularSlop (2.0f / 180.0f * b2_pi) 74 #define b2_polygonRadius (2.0f * b2_linearSlop) 77 #define b2_maxSubSteps 8 83 #define b2_maxTOIContacts 32 87 #define b2_maxLinearCorrection (0.2f * b2_lengthUnitsPerMeter) 91 #define b2_maxAngularCorrection (8.0f / 180.0f * b2_pi) 95 #define b2_maxTranslation (2.0f * b2_lengthUnitsPerMeter) 96 #define b2_maxTranslationSquared (b2_maxTranslation * b2_maxTranslation) 100 #define b2_maxRotation (0.5f * b2_pi) 101 #define b2_maxRotationSquared (b2_maxRotation * b2_maxRotation) 106 #define b2_baumgarte 0.2f 107 #define b2_toiBaumgarte 0.75f 113 #define b2_timeToSleep 0.5f 116 #define b2_linearSleepTolerance (0.01f * b2_lengthUnitsPerMeter) 119 #define b2_angularSleepTolerance (2.0f / 180.0f * b2_pi) 123 void b2Dump(
const char*
string, ...);
void b2OpenDump(const char *fileName)
Dump to a file. Only one dump file allowed at a time.
int32 minor
incremental changes
Definition: b2_common.h:131
B2_API b2Version b2_version
Current version.
Definition: b2_common.h:128
int32 major
significant changes
Definition: b2_common.h:130
int32 revision
bug fixes
Definition: b2_common.h:132