I have multiple agents that have a definite front and back to them.
My current solution has my agents stopping at the destination correctly, but they stop at odd angles, which looks very disorganized.
I what to have my agents all face a common direction, one of the cardinal or intermediate directions (n, north east, east, south east, south, sou west, west, north west).
My current system determines direction to face (based on angle to target from start node) and then rotates my agents to face that direction. As you can guess, this looks very unnatural (as my agents represent space ships and this is normally not how ships are seen to move).
My guess on the solution to this has to do with modify the path so when I end at the goal node, I’m facing the correct direction (which is how naval ships and cars and such all move to face directions).
How would I do this or implement is? I am unsure of how to start and how to actually modify the path. I know e path in the ai script shows it is an array of vector3 objectsn(representing positions of each node in the path) but I am unsure of how I am to account for all directions and such.