A* Pathfinding Project

Arriving at destination with specific orientation


#1

Is there any built in function that allows the constraint of the agent must arrive at their destination at a specific angle/orientation?


#2

Hi

I’m afraid there is no such constraint at the moment.
Doing this in pathfinding requires large changes to the pathfinding algorithms as it requires duplicating the nodes N times if there are N rotation directions.
You could however either create a custom movement script that does this or override the rotation of an existing movement script (see for example AIPath.updateRotation property).