Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rik on July 05, 2016, 10:45:54 AM

Title: navmesh get remaining distance (infinity)
Post 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
Title: Re: navmesh get remaining distance (infinity)
Post by: jeanfabre on August 01, 2016, 06:10:25 AM
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
Title: Re: navmesh get remaining distance (infinity)
Post by: jeanfabre on August 01, 2016, 08:23:27 AM
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