|  | Box2D
    2.3.0
    A 2D Physics Engine for Games | 
 
 
 
Go to the documentation of this file.
   26 #define B2_NOT_USED(x) ((void)(x)) 
   27 #define b2Assert(A) assert(A) 
   29 typedef signed char int8;
 
   30 typedef signed short int16;
 
   31 typedef signed int int32;
 
   32 typedef unsigned char uint8;
 
   33 typedef unsigned short uint16;
 
   34 typedef unsigned int uint32;
 
   35 typedef float float32;
 
   36 typedef double float64;
 
   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.
Definition: b2Settings.cpp:27
int32 minor
incremental changes
Definition: b2Settings.h:144
void b2Free(void *mem)
If you implement b2Alloc, you should also implement this function.
Definition: b2Settings.cpp:32
b2Version b2_version
Current version.
Definition: b2Settings.cpp:24
int32 major
significant changes
Definition: b2Settings.h:143
Definition: b2Settings.h:141
void b2Log(const char *string,...)
Logging function.
Definition: b2Settings.cpp:38
int32 revision
bug fixes
Definition: b2Settings.h:145