Hi there,
I have a hexagonal grid where I created a pointgraph. I would like my character to move between the nodes at a speed which is set by using the connection cost between those 2 nodes. How can I get the cost of the link the character is currently moving on?
Best regards,
Mitchel
Hi
That depends on the movement script that you are using.
On a PointNode all connections are stored in the ‘connections’ array and all connection costs are stored in the corresponding ‘connectionCosts’ array.
Hi Aron,
I’m using the AI Lerp script for movement. Could you give me an example on how to get the connection costs?
Thanks in advance!
Mitchel