A* Pathfinding Project

Point Graph with Labels for Connections?


#1

Hi, I wanted to know if it is possible to label the connections between nodes in a point graph. I did do something similar a long time ago, but it required changing the base code significantly. I would like to use this for a 2D platformer to, for example, label that from this point to this point I need to “Jump” and from this point to this point I will need to “Climb”. Is there any way to do this without significantly modifying the base code?

Thank you


#2

Hi

Sorry for the late answer. I am currently traveling and I lost my laptop on a flight, so I haven’t been able to work for a while.

Currently there is no such functionality out of the box I’m afraid. You could use the Connection.shapeEdge field to store this information. However it’s will not be directly accessible in the calculated path.