Cannot figure out why my character is walking into the capsule



I feel like my code is exactly as it is in the video, not sure why this is happening and spent hours trying to figure it out to no avail. Could someone please shed some light?

from: Intermediate RPG Combat, episode 7 of Basic Combat section.

For future reference, paste in the text of the scripts and format them with the </> button.

Try adjusting the stopping distance in the NavMeshAgent. The higher the distance, the closer the agent will wind up getting to the capsule. We generally set this to 0.

Privacy & Terms