Hässliche reuden ranz Map-Begrenzung

This commit is contained in:
Simon Lübeß
2024-04-08 16:43:05 +02:00
parent 8e995ec0a5
commit 739eb2bc4b
550 changed files with 108099 additions and 7582 deletions

View File

@ -148,7 +148,8 @@ public class Character : MonoBehaviour
if(moveDirection.x != 0f || moveDirection.z != 0f)
{
_targetRotation = Quaternion.Euler(new Vector3(0f, Mathf.Atan2(moveDirection.x, moveDirection.z) * Mathf.Rad2Deg, 0f));
_targetRotation = Quaternion.LookRotation(moveDirection);
//Quaternion.Euler(new Vector3(0f, Mathf.Atan2(moveDirection.x, moveDirection.z) * Mathf.Rad2Deg, 0f));
}
}