- Home /
NavMeshAgent "exits" its character model if I rotate around it fast.
I set up an NPC in my scene with a basic running animation, and I put a NavMeshAgent on it. All that NavMeshAgent does is follow the player, and it works okay until I start rotating around the NPC.
For some reason it seems like the NavMeshAgent starts following the player instantly, whilst the NPC model is still rotating and is "late" which causes a weird bug where the NavMeshAgent is actually outside my NPC.
You can see what happens on this picture. This causes a weird bug where the NPC is not even rotated towards me, but still follows me around. I've been trying many different things - enabling/disabling animations, creating a new empty GameObject and putting the NPC inside of it, moving scripts around, increasing the agent's rotation speed, but to no avail.
Answer by Domac_ · Jun 26, 2020 at 11:46 PM
Here's the picture I put in the post but isn't showing up: https://i.imgur.com/vSdk0AQ.png