Repository navigation
v1.0.3 — Fixed tolerance instead of speed-dependent
Fixes entities falling through slopes in v1.0.2.
Root cause found: The slope pass-through check uses Math.Abs(Velocity.X) as tolerance. When the player stops on a slope, Velocity.X = 0, tolerance disappears, and the check fails by ~1 ULP on ARM64.
Fix: Replace Math.Abs(Velocity.X) with a fixed 1-pixel tolerance in both slope type checks. The check is now consistent regardless of player speed.
v1.0.0–v1.0.2 users: Please update. Previous versions used flawed approaches.