Game Math 🧮, Phaser 4 🚀, Spherical Harmonics 🔮
🎮 Game Dev Craft & UX Polish
Stop Sprinkling Epsilons Everywhere: Writing Robust Game Math
Most game devs learn “never compare floats for equality” and reach for arbitrary epsilons, but this post shows why that habit often creates more bugs than it fixes. Through concrete examples—grid movement, slerp, vector length, ray-box tests, convex hulls—it demonstrates cleaner, more robust alternatives that frequently rely on exact comparisons or better algorithms. It also highlights when epsilons actually make sense, like sanitizing...
