Implemented the fast atan2 into entity direction.