Game dev
Saved & recent

Perception

Related terms: vision cone, line of sight, hearing, awareness

How AI characters sense the world. It is kept deliberately limited so the player can outsmart them. Sight is a vision cone, an angle and a distance, plus a raycast to check nothing is in the way. Hearing is a radius around each sound.

The results usually feed an awareness value that rises over time instead of flipping at once. That gives stealth games their "suspicious" state. An enemy that always knows where you are feels like cheating.

Further reading
Iain McManus: Unity AI Tutorial, Hearing and Vision Sensors
hearing radius vision cone occluded visible
The blue cone shows potential sight. A wall cuts it off, hiding one marker. A nearby sound reaches the rover inside the gold circle.

View in the full Game dev collection