playMaker

Author Topic: navmesh get remaining distance (infinity)  (Read 673 times)

rik

  • Full Member
  • ***
  • Posts: 247
    • View Profile
navmesh get remaining distance (infinity)
« on: July 05, 2016, 07: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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: navmesh get remaining distance (infinity)
« Reply #1 on: August 01, 2016, 03: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 so I suspect this issue isn't related to PlayMaker

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: navmesh get remaining distance (infinity)
« Reply #2 on: August 01, 2016, 05: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