Hey All,
I am trying to chase the current player, and it is working successfully at the moment. However, It sometimes breaks when the player starts to jump. If the player Jumps very high, the enemy will still ‘Look At’ the player, and instead of running through his path, he sometimes does some weird pathing and rotates around the position.
In the video, you can see the issue right after 20 seconds.
After the player jumps, the enemy continues to look at the player while he is jumping, causing some weird pathing logic.
All I am using is: (within an Update)
aistarPath.destination = targetPos.transform.position;