Rotate arrows to show the way

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gimgones

Hi guys,

I currently working on a 3D game where the player controls a car.
Each round the player has to go to a specific target on the map.

To show him the way I have placed arrows on the streets.

How can I rotate these arrows so that they show him the (shortest) way?

image

:bust_in_silhouette: Reply From: Inces

So You want every tile of a road to know the path to target and point along shortest. This is definitely the job for vectorfield pathfinding. Beware, it is not so simple concept, requires creative optimization too. Start learning from this source :