Fir catalog rotation

This commit is contained in:
Legonzaur 2023-01-13 18:34:02 +01:00
parent f89e261c93
commit 344e718212

View File

@ -52,8 +52,8 @@ public class Catalog : MonoBehaviour
while (true)
{
transform.rotation = Quaternion.RotateTowards(transform.rotation, player.hmdTransform.rotation, 380);
transform.eulerAngles = new Vector3(transform.eulerAngles.x, 0, transform.eulerAngles.z);
transform.rotation = Quaternion.LookRotation(transform.position - player.hmdTransform.position);
transform.rotation = new Quaternion(0, transform.rotation.y, 0, transform.rotation.w);
yield return null;
}
}