From 3ebee73112c14d73c9bdfcd0dca375d5b4af9bc1 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 25 Mar 2023 12:04:38 +0900 Subject: [PATCH] [Upstream] Increase epsilon in detour segment polygon intersection test 9b45fe8a8df8d8c31bbde63611b0b4a1982f63a0 --- src/DotRecast.Detour/DetourCommon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Detour/DetourCommon.cs b/src/DotRecast.Detour/DetourCommon.cs index e2428bc..7c7de91 100644 --- a/src/DotRecast.Detour/DetourCommon.cs +++ b/src/DotRecast.Detour/DetourCommon.cs @@ -600,7 +600,7 @@ namespace DotRecast.Detour public static IntersectResult intersectSegmentPoly2D(float[] p0, float[] p1, float[] verts, int nverts) { IntersectResult result = new IntersectResult(); - float EPS = 0.00000001f; + float EPS = 0.000001f; float[] dir = vSub(p1, p0); VectorPtr p0v = new VectorPtr(p0);