Real World Maths Busters
The Maths Behind Everyday Life
The story, the formula and a worked example — see exactly where this maths shows up in the world around you.
Games & Chance 3 min read
Hitboxes Are Simpler Than You Think
Collision detection uses rectangles.
Most video games approximate character shapes with simple rectangles (AABB) or circles for collision detection. The Pythagorean theorem handles circle-vs-circle checks.
Circle collision
Two circles collide when distance between centres < r₁ + r₂.
Player at (100,200) r=20, enemy at (130,220) r=15
- 1
Distance
√((130−100)² + (220−200)²) = √(900+400) = 36.1
- 2
Sum of radii
20+15 = 35
- 3
Collision?
36.1 > 35 → barely missed
Answer
No collision — missed by 1.1 pixels
The takeaway
Every game hit you take — or narrowly avoid — is resolved by Pythagoras.