Welcome to dev log #7 for Kavar. This week’s focus was expending upon the AI for the enemies and how they pick targets. Before the update, the enemy would automatically go to the player regardless of where they were and follow them. Now, the enemy has to actually view the player to chase after them. This involves using a line cast which is a built-in function Unity has which allows two points to be set, the start position and the end position, and see if there are any colliders between the points. If there isn’t then the enemy …
↧