diff --git a/vendor/box2d/math_functions.odin b/vendor/box2d/math_functions.odin index 4394feb39..c2d197f08 100644 --- a/vendor/box2d/math_functions.odin +++ b/vendor/box2d/math_functions.odin @@ -3,7 +3,7 @@ package vendor_box2d import "core:c" import "core:math" -EPSILON :: 1e-23 +EPSILON :: math.F32_EPSILON Vec2 :: [2]f32 @@ -247,7 +247,7 @@ Normalize :: proc "c" (v: Vec2) -> Vec2 { @(require_results) IsNormalized :: proc "c" (v: Vec2) -> bool { aa := Dot(v, v) - return abs(1. - aa) < 10. * EPSILON + return abs(1. - aa) < 100. * EPSILON } @(require_results)