30 #define B2_NOT_USED(x) ((void)(x)) 31 #define b2Assert(A) assert(A) 33 typedef signed char int8;
34 typedef signed short int16;
35 typedef signed int int32;
36 typedef unsigned char uint8;
37 typedef unsigned short uint16;
38 typedef unsigned int uint32;
39 typedef float float32;
40 typedef double float64;
42 #define b2_maxFloat FLT_MAX 43 #define b2_epsilon FLT_EPSILON 44 #define b2_pi 3.14159265359f 54 #define b2_maxManifoldPoints 2 58 #define b2_maxPolygonVertices 8 63 #define b2_aabbExtension 0.1f 68 #define b2_aabbMultiplier 2.0f 72 #define b2_linearSlop 0.005f 76 #define b2_angularSlop (2.0f / 180.0f * b2_pi) 81 #define b2_polygonRadius (2.0f * b2_linearSlop) 84 #define b2_maxSubSteps 8 90 #define b2_maxTOIContacts 32 94 #define b2_velocityThreshold 1.0f 98 #define b2_maxLinearCorrection 0.2f 102 #define b2_maxAngularCorrection (8.0f / 180.0f * b2_pi) 106 #define b2_maxTranslation 2.0f 107 #define b2_maxTranslationSquared (b2_maxTranslation * b2_maxTranslation) 111 #define b2_maxRotation (0.5f * b2_pi) 112 #define b2_maxRotationSquared (b2_maxRotation * b2_maxRotation) 117 #define b2_baumgarte 0.2f 118 #define b2_toiBaugarte 0.75f 124 #define b2_timeToSleep 0.5f 127 #define b2_linearSleepTolerance 0.01f 130 #define b2_angularSleepTolerance (2.0f / 180.0f * b2_pi) 141 void b2Log(
const char*
string, ...);
void b2Log(const char *string,...)
Logging function.
Definition: b2Settings.cpp:38
int32 minor
incremental changes
Definition: b2Settings.h:148
void b2Free(void *mem)
If you implement b2Alloc, you should also implement this function.
Definition: b2Settings.cpp:32
void * b2Alloc(int32 size)
Implement this function to use your own memory allocator.
Definition: b2Settings.cpp:27
b2Version b2_version
Current version.
Definition: b2Settings.cpp:24
Definition: b2Settings.h:145
int32 major
significant changes
Definition: b2Settings.h:147
int32 revision
bug fixes
Definition: b2Settings.h:149