playMaker

Author Topic: NavMesh Remaining Distance  (Read 124 times)

tcmeric

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
NavMesh Remaining Distance
« on: April 21, 2017, 07:38:46 AM »
I am using the pathfinding package for playmaker. I am using the action "get agent remaining distance", which works well.

However, I would like to set a destination without starting movement (so I can calculate the distance before I choose to move or not). Ie, if it is too far, my player may decide not to move.

When using the "Set Agent Destination as Game Object", it begins to move towards the destination right away. It does not wait for the "Agent Move" action.

I can use "Agent Pause" and then choose "Agent Resume" when I am ready to move. But, is there a way to calculate a navmesh path without movement the starting on my gameobject?

Lastly, how is this path stored? (I plan on writing a script that will allow the player to see the possible path and distance before committing to it). I dont think there is a way in playmaker to display the saved path (correct?)

Thanks!

Grendelbiter

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: NavMesh Remaining Distance
« Reply #1 on: April 21, 2017, 11:45:15 AM »
Set updatePosition on the navmesh agent to false.

tcmeric

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Re: NavMesh Remaining Distance [solved]
« Reply #2 on: April 23, 2017, 11:53:13 PM »
Thanks my friend. Solved.