|
73 | 73 | #if !defined(PHYSAC_H) |
74 | 74 | #define PHYSAC_H |
75 | 75 |
|
76 | | -// #define PHYSAC_STATIC |
77 | | -// #define PHYSAC_NO_THREADS |
78 | | -// #define PHYSAC_STANDALONE |
79 | | -// #define PHYSAC_DEBUG |
80 | | - |
81 | 76 | #if defined(PHYSAC_STATIC) |
82 | 77 | #define PHYSACDEF static // Functions just visible to module including this file |
83 | 78 | #else |
|
91 | 86 | //---------------------------------------------------------------------------------- |
92 | 87 | // Defines and Macros |
93 | 88 | //---------------------------------------------------------------------------------- |
94 | | -#define PHYSAC_MAX_BODIES 64 |
95 | | -#define PHYSAC_MAX_MANIFOLDS 4096 |
96 | | -#define PHYSAC_MAX_VERTICES 24 |
97 | | -#define PHYSAC_CIRCLE_VERTICES 24 |
| 89 | +#define PHYSAC_MAX_BODIES 64 |
| 90 | +#define PHYSAC_MAX_MANIFOLDS 4096 |
| 91 | +#define PHYSAC_MAX_VERTICES 24 |
| 92 | +#define PHYSAC_CIRCLE_VERTICES 24 |
98 | 93 |
|
99 | | -#define PHYSAC_COLLISION_ITERATIONS 100 |
100 | | -#define PHYSAC_PENETRATION_ALLOWANCE 0.05f |
101 | | -#define PHYSAC_PENETRATION_CORRECTION 0.4f |
| 94 | +#define PHYSAC_COLLISION_ITERATIONS 100 |
| 95 | +#define PHYSAC_PENETRATION_ALLOWANCE 0.05f |
| 96 | +#define PHYSAC_PENETRATION_CORRECTION 0.4f |
102 | 97 |
|
103 | | -#define PHYSAC_PI 3.14159265358979323846 |
104 | | -#define PHYSAC_DEG2RAD (PHYSAC_PI/180.0f) |
| 98 | +#define PHYSAC_PI 3.14159265358979323846 |
| 99 | +#define PHYSAC_DEG2RAD (PHYSAC_PI/180.0f) |
105 | 100 |
|
106 | | -#define PHYSAC_MALLOC(size) malloc(size) |
107 | | -#define PHYSAC_FREE(ptr) free(ptr) |
| 101 | +#define PHYSAC_MALLOC(size) malloc(size) |
| 102 | +#define PHYSAC_FREE(ptr) free(ptr) |
108 | 103 |
|
109 | 104 | //---------------------------------------------------------------------------------- |
110 | 105 | // Types and Structures Definition |
@@ -263,12 +258,12 @@ PHYSACDEF void ClosePhysics(void); |
263 | 258 | //---------------------------------------------------------------------------------- |
264 | 259 | // Defines and Macros |
265 | 260 | //---------------------------------------------------------------------------------- |
266 | | -#define min(a,b) (((a)<(b))?(a):(b)) |
267 | | -#define max(a,b) (((a)>(b))?(a):(b)) |
268 | | -#define PHYSAC_FLT_MAX 3.402823466e+38f |
269 | | -#define PHYSAC_EPSILON 0.000001f |
270 | | -#define PHYSAC_K 1.0f/3.0f |
271 | | -#define PHYSAC_VECTOR_ZERO (Vector2){ 0.0f, 0.0f } |
| 261 | +#define min(a,b) (((a)<(b))?(a):(b)) |
| 262 | +#define max(a,b) (((a)>(b))?(a):(b)) |
| 263 | +#define PHYSAC_FLT_MAX 3.402823466e+38f |
| 264 | +#define PHYSAC_EPSILON 0.000001f |
| 265 | +#define PHYSAC_K 1.0f/3.0f |
| 266 | +#define PHYSAC_VECTOR_ZERO (Vector2){ 0.0f, 0.0f } |
272 | 267 |
|
273 | 268 | //---------------------------------------------------------------------------------- |
274 | 269 | // Global Variables Definition |
|
0 commit comments