Hey thanks.
What I mean, Is what to know in which direction character is moving (Left, right, forward, backward, left forward, etc). I have it somewhat workin. Calculating the exact direction is not that much of an issue, as so knowing when to exactly switch direction (ie, from forward to left). Right now I do it something like this:
if(Direction > 0.2 && Direction < 0.5)
{
//switch to left
}
And there is bunch of those ifs. I wonder if there better way to do it.
I will try, what are you suggesting.
From what I see, it will not work on non-player characters ?