I’m trying to use the NavMesh system to calculate the path only and then move my objects manually along that path.
I’m doing this by disabling the automatic updates of position, rotation, upaxis and setting obstacle avoidance to none, then setting agent.nextPosition to the start position and calculating the path using agent.calculatePath with the destination.
Then I get my array of points that make up the path like I want.
The problem is, it completely ignores height and goes straight through humps or over valleys in a straight line. But I can walk on top of a mountain if I set the destination to be there, it just goes in a straight line up instead of curved.
Why? What am I missing?
Edit: Here is a video to illustrate the problem (ignore the colorful balls )