> You can compare every tick if the X and/or Y is increasing or decreasing. For the X axis example: If it's increasing, it means its going right. If it's decreasing, it means its going left. It's the same for the axis Y.
>
so how i set the angle !?
The way I explained you don't need the angle. But you also need to explain how is your game in order to know the best way to do it. It is a platform or Top-down?