Using rigidbody's velocity instead of direction to store direction the character is facing