Yağız Selek
All projects

Patrolling Guard · Case study

From patrol to last-known-position search.

A C# Unity exercise in keeping perception, navigation and guard state in sync.

Navigation baseline

The guard uses a NavMesh to move between waypoints. The player movement and camera setup make it possible to approach from different angles and test how the guard reacts.

Perception is more than distance

The sight check combines a maximum distance, view angle and an occlusion raycast. Entering the radius is not enough if the target is out of the guard’s field of view or hidden behind geometry.

When the player moves out of chase range

Sight initiates a chase, but the prototype exits chase on a distance threshold. The guard searches the last position tracked during the chase, then returns to its waypoint route. That is different from tracking only confirmed sightings.

References

Implementation evidence