AI Constraints and the Evolution of Perspective

Channel:
Subscribers:
831
Published on ● Video Link: https://www.youtube.com/watch?v=z5sHVNgvzeM



Duration: 0:00
9 views
1


Previously, obstacles were placed to constrain the AI's movement. Instead of chasing in a straight line, the enemy was forced to navigate around barriers. However, it was difficult to visually grasp how the enemy perceived its surroundings.

This time, the concept of perspective was introduced. The enemy now has a defined direction and a limited field of view. By setting a viewing angle and distance, a sector-shaped vision range was drawn, making it clear where the enemy is looking.

Vector operations played a key role in determining visibility. The angle between the enemy's direction vector and the vector toward the player was calculated to check if the player was within the field of view. For movement, the difference vector toward the player was obtained and scaled to a fixed magnitude, enabling smooth pursuit.

By giving AI a sense of perspective, we rethink how it "sees." It’s no longer just about movement but about recognizing space and deciding how to act—bringing that step to life.