When using NavMesh.SamplePosition to get NavMeshHit, there’s no valid Normal data in result, which is always Vector3.zero. Anyone knows what’s going on?
So do I. Anybody knows?
Did you ever figure this out? Just ran into the same issue and can’t find much about it.
After all these years this is still a mystery. What purpose does navmeshhit.normal do? It’s always Vector3.zero.
And this is not documented properly. Anyone?
It returns the normal of the NavMesh polygon boundary when NavMesh.Raycast gets a hit - i.e. the direction “away from” the boundary you hit, along the surface of the NavMesh.
This is handy for walking back from cliffs, which is exactly how I ended up on this thread.