generated from VR-Sexe/Unity3DTemplate
Fir catalog rotation
This commit is contained in:
parent
f89e261c93
commit
344e718212
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user