+4

HasReachedDestination

arvidsson 3 years ago updated 3 years ago 2
Here is a macro for determining when a NavMeshAgent has reached a destination.


Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Cool macro!

Here's a tip: use the Approximately Equal node under Math instead the the float equals. This way, you'll account for floating point errors and you won't even need control inputs/outputs!

Thanks for the tip! Will fix.