Unity 3rd Person: Combat & Traversal Issues

Hello im currently on section 50 of this course ( Impact State Transitions ) and I am coming across a weird bug where if I perform an attack, my player keeps moving forward constantly getting faster everytime I attack, also getting weird console logs

any help would be awesome

The resetpath bug is one that usually has to do with knocking enemies off of the NavMesh with the ForceReceiver, which is fairly hard to mitigate.
When knocking a character into an obstacle like a house, for example prevents the character from moving off the NavMesh, but knocking them up a slope is a different matter. One thing you can do is to lower the slope on the CharacterController so that it is lower than the NavMeshAgent’s max slope.

My preferred method (but this takes time!) is to put invisible colliders in places where you don’t want the characters to walk. This will act like a building, as a hard stop so that you can’t knock them off of the NavMesh.

Privacy & Terms