I posted a question recently on how to turn off rotation. But I believe this should be it’s own question for future readers.
Before applying your pathfinding I used a simple Vector for direction, for example:
left: (-1, 0)
right: (1, 0)
up: (0, 1)
down: (0, -1)
This was then used to set the correct animation.
Any way I can get something similar from AIPath? basically:
if (direction.x < 0f && direction.y == 0)
{
SetCurrentCharacterDirection(left);
}
or something of that kind.