Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ob1knb on July 05, 2020, 02:13:02 PM

Title: Is it possible to draw navmesh path with playmaker ?[SOLVED]
Post by: ob1knb on July 05, 2020, 02:13:02 PM
I want the player to know where a character is going for a stealth prototype I'm working on.
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: jeanfabre on July 06, 2020, 01:41:37 AM
Hi,

 yes, it's possible, you should use the action NavMeshCalculatePath which returns a list of vector3 points and with this list you can then create a line using the line renderer.

 Bye,

 Jean
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: ob1knb on July 06, 2020, 02:50:27 AM
How can I add LineRenderer positions based on the Array?
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: jeanfabre on July 06, 2020, 04:42:17 AM
Hi,

 ah bugger, I though we had an action for that. Let me work on one and get back to you tomorrow on this. there is one that can draw a line between two objects, I'll modify it so that you can pass an array of points.

https://hutonggames.com/playmakerforum/index.php?topic=3943.msg88570#msg88570


Bye,

 Jean
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: ob1knb on July 08, 2020, 06:03:32 PM
Any updates, or should I move on?
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: jeanfabre on July 10, 2020, 01:34:34 AM
hi,

 no no, I am on it :)

Bye,

 Jean
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: jeanfabre on July 10, 2020, 02:15:49 AM
Hi,

 done :)

 download DrawPathLineRendering from the Ecosystem browser and you can then control a lineRenderer positions. It's working differently then the DrawLine action, it expects a lineRenderer Component instead of creating one from scratch, which gives you a lot more control during editing this way.

 Let me know how it goes.

Bye,

 Jean
Title: Re: Is it possible to draw navmesh path with playmaker ?
Post by: ob1knb on July 10, 2020, 05:42:34 AM
Works perfectly, Thanks
Title: Re: Is it possible to draw navmesh path with playmaker ?[SOLVED]
Post by: jeanfabre on July 13, 2020, 03:23:27 AM
Hi,

Excellent! Thanks for letting us know.

Bye,

 Jean