MBED port of the Physacs library
Diff: physac.h
- Revision:
- 1:ebc0214989c0
- Parent:
- 0:e39efa4f4f58
--- a/physac.h Tue Nov 29 22:42:42 2022 +0000 +++ b/physac.h Mon Dec 05 19:27:37 2022 +0000 @@ -98,10 +98,10 @@ //---------------------------------------------------------------------------------- // Defines and Macros //---------------------------------------------------------------------------------- -#define PHYSAC_MAX_BODIES 64 +#define PHYSAC_MAX_BODIES 32 #define PHYSAC_MAX_MANIFOLDS 256 #define PHYSAC_MAX_VERTICES 4 -#define PHYSAC_CIRCLE_VERTICES 6 +#define PHYSAC_CIRCLE_VERTICES 12 #define PHYSAC_COLLISION_ITERATIONS 100 #define PHYSAC_PENETRATION_ALLOWANCE 0.05f @@ -110,8 +110,12 @@ #define PHYSAC_PI 3.14159265358979323846 #define PHYSAC_DEG2RAD (PHYSAC_PI/180.0f) +#ifndef PHYSAC_MALLOC #define PHYSAC_MALLOC(size) malloc(size) +#endif +#ifndef PHYSAC_FREE #define PHYSAC_FREE(ptr) free(ptr) +#endif //---------------------------------------------------------------------------------- // Types and Structures Definition