playMaker

Author Topic: Is it possible to draw navmesh path with playmaker ?[SOLVED]  (Read 1518 times)

ob1knb

  • Playmaker Newbie
  • *
  • Posts: 11
I want the player to know where a character is going for a stealth prototype I'm working on.
« Last Edit: July 13, 2020, 03:23:06 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #1 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

ob1knb

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #2 on: July 06, 2020, 02:50:27 AM »
How can I add LineRenderer positions based on the Array?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #3 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

ob1knb

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #4 on: July 08, 2020, 06:03:32 PM »
Any updates, or should I move on?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #5 on: July 10, 2020, 01:34:34 AM »
hi,

 no no, I am on it :)

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #6 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

ob1knb

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Is it possible to draw navmesh path with playmaker ?
« Reply #7 on: July 10, 2020, 05:42:34 AM »
Works perfectly, Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is it possible to draw navmesh path with playmaker ?[SOLVED]
« Reply #8 on: July 13, 2020, 03:23:27 AM »
Hi,

Excellent! Thanks for letting us know.

Bye,

 Jean