Thursday, March 3, 2016

NavMeshAgent


The Nav mesh agent is put on the enemies in order to use the nav mesh to move. The script targets the player as the desired location and moves to that position while avoiding the obstacles that may stand in it's way. 


Once implemented, I changed the stopping distance so the enemies would have to shoot from a certain distance away, instead of right on top of the player.

Since the Nav Mesh takes care of the enemy movement, I do not have to create a fleshed out AI system.

No comments:

Post a Comment