playMaker

Author Topic: 2D Pathfinding solution OR A* Actions?  (Read 236 times)

Infamous

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
2D Pathfinding solution OR A* Actions?
« on: February 04, 2020, 02:55:59 AM »
Hello there-

I am working on a project that requires some simple AI and pathfinding. I am working on a 2D game and it seems like the default unity navMesh does not support 2D.

I found A* and it seems like it could do the job. However, I couldn't find any Actions for that asset. I found this post, but it seems to be dead/outdated:
https://hutonggames.com/playmakerforum/index.php?topic=2540.0

I could be missing something here and would appreciate the help.

I downloaded the Pathfinding actions from the Ecosystem, but it seems they are for unity NavMesh.

are there 2D Pathfinding solutions that have Playmaker actions? Are A* actions still out there and would they work on the current A* Version?

All help is much appreciated..

Cheers

Infamous

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: 2D Pathfinding solution OR A* Actions?
« Reply #1 on: February 06, 2020, 01:04:29 AM »
It seems to me that A* in its current version is a lot different than the post I linked.

It seems like a few actions could solve the issues.

For example, setting a transform variable or setting the max speed in the A* component.

I’m currently using Set Properties, but those use reflections and I much rather not have to use the linker wizard.

All help is greatly appreciated

Cheers

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 148
    • View Profile
Re: 2D Pathfinding solution OR A* Actions?
« Reply #2 on: February 06, 2020, 02:16:32 AM »
I've been looking for this since I started using Playmaker, and it's a shame that A* Pathfinding Asset doesn't have any official or maintain actions considering it's the most popular pathfinding asset.

With that said, you can use Unity's build-in pathfinding for 2D games as well. It does require a bit of work though and not as straight forward one would wish.
You can read more about it here: https://forum.unity.com/threads/2d-navmesh-pathfinding.503596/

Polynav also works fine, it's simple and straight forward. But from my experience not very performant when doing a lot of calculations.
https://assetstore.unity.com/packages/tools/ai/polynav-2d-pathfinding-14718