The object is not rotating while moving, that is the problem. I need that the character i control looks to the same direction is moving. I can't get the rotation because it is not rotating, just moving in diferent axes but looking to the same direction at all time.
That's why i need to get the direction the character is moving to make it rotates every frame to that direction.