playMaker

Author Topic: NavMesh Remaining Distance  (Read 2080 times)

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
NavMesh Remaining Distance
« on: April 21, 2017, 10: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: 11
Re: NavMesh Remaining Distance
« Reply #1 on: April 21, 2017, 02:45:15 PM »
Set updatePosition on the navmesh agent to false.

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: NavMesh Remaining Distance [solved]
« Reply #2 on: April 24, 2017, 02:53:13 AM »
Thanks my friend. Solved.