Detection
Detection blocks allow agents to sense and detect objects, other agents, and environmental conditions in the simulation.
Overview
Detection blocks enable agents to perceive their environment, find nearby agents, and respond to collisions. These blocks are essential for creating interactive behaviors and agent-to-agent communication in your StarLogo Nova simulations.
Block Categories
Collision Detection
- Collidee - Returns reference to the agent that was collided with
- On Collision With Do - Executes code when collision occurs
Distance-Based Detection
- Count Within Steps - Counts agents within specified distance
- Count Within Steps With = - Counts agents within distance matching condition
- Nearest Within Steps - Returns nearest agent within distance
- Nearest Within Steps With = - Returns nearest agent within distance matching condition