Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: tcmeric on April 21, 2017, 10:38:46 AM

Title: NavMesh Remaining Distance
Post by: tcmeric 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!
Title: Re: NavMesh Remaining Distance
Post by: Grendelbiter on April 21, 2017, 02:45:15 PM
Set updatePosition on the navmesh agent to false.
Title: Re: NavMesh Remaining Distance [solved]
Post by: tcmeric on April 24, 2017, 02:53:13 AM
Thanks my friend. Solved.