Random Points on a NavMesh (Unity 2021)

Опубликовано: 11 Февраль 2025
на канале: Omar Santiago
5,419
54

Source Code: https://github.com/omarvision/Random-...

While I was doing the crowd simulator video I came across a problem to solve. How to get random points (BUT) that are on the NavMesh? How to really tell when the NavMeshAgent reaches the destination? Can I draw out the navigation path as a line so I can see it on the screen?
Well this tutorial's main topic is how to get random points and make sure they are on the navmesh. That way you know that the gameobject will actually be able to reach it's destination.

go to http://www.omarvision.com to:
browse/search my entire video collection
download source and assets for tutorials
sign up for omarvision kids coding camps