FollowHead.cs 313 B

123456789101112
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class FollowHead : MonoBehaviour
  5. {
  6. void Update()
  7. {
  8. this.transform.position = OpenXRCamera.Instance.head.position;
  9. this.transform.eulerAngles = OpenXRCamera.Instance.head.eulerAngles;
  10. }
  11. }