Small tech demo for doing an AI like this, it uses ray casts from the player camera's forward to all of its vertices to check if it's on screen and if it's behind something. I only programmed the AI itself, the rest is the default FPS scene provided by unity.

I won't be working on this further but I thought it was kinda cool so here it is to try out.

Leave a comment

Log in with itch.io to leave a comment.