#Enemy AI: Navigation incomplete when targeting the player.

1 messages · Page 1 of 1 (latest)

dense grotto
#

When the enemy has reached the player's position, they should be attacking. Unfortunately, the navigation towards the player is never completed. I've tried setting the target position to the sides of the player's collision box based on what direction they're facing, but that didn't help.

graceful sirenBOT
warm narwhal
#

I would try enabling the NavigationAgent debug setting that draws its current path. That would let you see what it is trying to do.

One setting you can play with (ideally, once you better understand why it isn't finishing navigation) is the target_desired_distance, which allows it to be considered finished if it is within this distance to target.

dense grotto