 |
Box2D
2.4.0
A 2D physics engine for games
|
Go to the documentation of this file.
36 #define B2_NOT_USED(x) ((void)(x))
37 #define b2Assert(A) assert(A)
39 typedef signed char int8;
40 typedef signed short int16;
41 typedef signed int int32;
42 typedef unsigned char uint8;
43 typedef unsigned short uint16;
44 typedef unsigned int uint32;
46 #define b2_maxFloat FLT_MAX
47 #define b2_epsilon FLT_EPSILON
48 #define b2_pi 3.14159265359f
58 #define b2_maxManifoldPoints 2
62 #define b2_maxPolygonVertices 8
67 #define b2_aabbExtension 0.1f
72 #define b2_aabbMultiplier 4.0f
76 #define b2_linearSlop 0.005f
80 #define b2_angularSlop (2.0f / 180.0f * b2_pi)
85 #define b2_polygonRadius (2.0f * b2_linearSlop)
88 #define b2_maxSubSteps 8
94 #define b2_maxTOIContacts 32
98 #define b2_velocityThreshold 1.0f
102 #define b2_maxLinearCorrection 0.2f
106 #define b2_maxAngularCorrection (8.0f / 180.0f * b2_pi)
110 #define b2_maxTranslation 2.0f
111 #define b2_maxTranslationSquared (b2_maxTranslation * b2_maxTranslation)
115 #define b2_maxRotation (0.5f * b2_pi)
116 #define b2_maxRotationSquared (b2_maxRotation * b2_maxRotation)
121 #define b2_baumgarte 0.2f
122 #define b2_toiBaumgarte 0.75f
128 #define b2_timeToSleep 0.5f
131 #define b2_linearSleepTolerance 0.01f
134 #define b2_angularSleepTolerance (2.0f / 180.0f * b2_pi)
145 B2_API
void b2Log(
const char*
string, ...);
149 B2_API
void b2Dump(
const char*
string, ...);
150 B2_API
void b2CloseDump();
int32 minor
incremental changes
Definition: b2_settings.h:157
B2_API void * b2Alloc(int32 size)
Implement this function to use your own memory allocator.
B2_API void b2Log(const char *string,...)
Logging function.
B2_API b2Version b2_version
Current version.
int32 major
significant changes
Definition: b2_settings.h:156
B2_API void b2Free(void *mem)
If you implement b2Alloc, you should also implement this function.
Definition: b2_settings.h:155
B2_API void b2OpenDump(const char *fileName)
Dump to a file. Only one dump file allowed at a time.
int32 revision
bug fixes
Definition: b2_settings.h:158