Eonirr

Untitled

Sep 17th, 2026
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. float sqrDist = (a.position - b.position).sqrMagnitude;
  2. if (sqrDist <= detectionRange * detectionRange)
Advertisement
Add Comment
Please, Sign In to add comment