Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Log 7 - Enemy AI Continuation

$
0
0

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 …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>