aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-10-18 02:25:02 +0200
committerGitHub <noreply@github.com>2025-10-18 02:25:02 +0200
commit2a8d9ee3f7391cc5fc46b8f84af8fbe27f217d5c (patch)
tree69389ec4c3ed9bfe8bccc4afded5d3e16f92552b
parent4b8751bebdbf40528c2af8ff5a4ef38c1ab429cc (diff)
parent652eadf13526b2d67eeadab420b03c52be60ab5d (diff)
Merge pull request #5823 from Malmer/fix/box2d-math-functions
Fix source mismatches in vendor:box2d math functions
-rw-r--r--vendor/box2d/math_functions.odin4
1 files changed, 2 insertions, 2 deletions
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)