diff --git a/sources/reactphysics3d/mathematics/constants.h b/sources/reactphysics3d/mathematics/constants.h index 942fe552..97c573a0 100644 --- a/sources/reactphysics3d/mathematics/constants.h +++ b/sources/reactphysics3d/mathematics/constants.h @@ -20,11 +20,13 @@ #ifndef CONSTANTS_H #define CONSTANTS_H -// Constant used for the precision +// Libraries +#include + +// Constants const double EPSILON = 0.00001; const double ONE_MINUS_EPSILON = 0.99999; - -// Pi constant -const double PI = 3.14159265; +const double INFINITY_CONST = std::numeric_limits::infinity(); +const double PI = 3.14159265; // Pi constant #endif