Skip to content

v1.0.3 — Fixed tolerance instead of speed-dependent

Choose a tag to compare

@maxdp66 maxdp66 released this 19 Apr 23:14
· 1 commit to main since this release

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.