From da27ee18bef82c2152e348e8ff805cb64c80643e Mon Sep 17 00:00:00 2001 From: aura Date: Sun, 1 Mar 2026 18:04:13 +0100 Subject: fix ramps make movement s m o o t h --- src/game/world/trace.cpp | 2 +- src/game/world/trace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/world') diff --git a/src/game/world/trace.cpp b/src/game/world/trace.cpp index 1c28d78..3548fa8 100644 --- a/src/game/world/trace.cpp +++ b/src/game/world/trace.cpp @@ -243,7 +243,7 @@ U8 bsp_trace_sweep_aabb_to_face( } } - if( fabsf( ndir ) < BSP_TRACE_EPSILON ) + if( ndir > BSP_TRACE_EPSILON ) return 0; F32 t_enter = (-radius - s0) / ndir; diff --git a/src/game/world/trace.h b/src/game/world/trace.h index 644515d..d04ed6b 100644 --- a/src/game/world/trace.h +++ b/src/game/world/trace.h @@ -5,7 +5,7 @@ // quake uses 1 / 32 const F32 BSP_TRACE_EPSILON = 1.f / 64.f; -const F32 BSP_EDGE_TOLERANCE = 1.f / 64.f; +const F32 BSP_EDGE_TOLERANCE = 1.f / 16.f; struct BSP_TRACE { VEC3 in_start; -- cgit v1.2.3