OS: win11
physac VERSION: tag 1.1
Compiler: MSVC 17(2022) with clang api
Compiler flags: target_compile_definitions(${APP_NAME} PRIVATE PHYSAC_STANDALONE _STDBOOL_H PHYSAC_IMPLEMENTATION PHYSAC_NO_THREADS)
PROBLEM:
if (MathLenSqr(radiusV) < (MathLenSqr((Vector2){ gravityForce.x*deltaTime/1000, gravityForce.y*deltaTime/1000 }) + PHYSAC_EPSILON))
1682:96: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
FIX SUGGESTION/WORKAROUND:
float x = gravityForce.x*deltaTime/1000;
float y = gravityForce.y*deltaTime/1000;
if (MathLenSqr(radiusV) < (MathLenSqr((Vector2){ x, y}) + PHYSAC_EPSILON))