$ ./guess_the_languageGame Dev
Game Dev · medium · #64

What kind of check is this?

if (Vector2.Distance(a, b) < radius) Hit();
  1. A circular proximity check
  2. An axis-aligned box overlap
  3. A raycast against geometry
  4. A pixel-perfect test
Comparing distance to a radius is a circle/sphere test.
Play Game Dev ▸