Proximity detection with triggers – Sample application
An example of flocking code written in Unity, using collider triggers for proximity detection. Each boid starts off in a random direction, and detects others nearby via a sphere collider. The scene will reset every 30 seconds with likely changing behavior.
This content requires the Unity Web Player









