Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: rik on July 05, 2016, 10:45:54 AM
-
i am trying to get the agent remaining distance i have set destination and game object was on the navmesh for some reason it is not calculating the destination in one go.
it split in to two and it calculate.
i have attached ref images below
-
Hi,
That's very odd. I am not sure I understand the exact problem and if it's related to the shape of the navmesh.
The action for getting the remaining distance is a straight read from the Agent property (https://docs.unity3d.com/ScriptReference/NavMeshAgent-remainingDistance.html) so I suspect this issue isn't related to PlayMaker
Bye,
Jean
-
Hi,
also, just to confirm that when you get "infinity" that means the remaining distance is unknown, so definitly something to do with the navmesh and/or agent position.
Bye,
Jean