1234567891011121314151617181920212223242526 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using SC.XR.Unity;
- public class VuforiaFollow : MonoBehaviour {
- // Use this for initialization
- void Start() {
- StartCoroutine(InitARCamera());
-
- }
- IEnumerator InitARCamera() {
- while(true) {
- transform.position = OpenXRCamera.Instance.head.position;
- transform.eulerAngles = OpenXRCamera.Instance.head.eulerAngles;
- yield return null;
- }
- }
- // Update is called once per frame
- void Update() {
- //gameObject.transform.position = API_GSXR_Slam.SlamManager.modifyPosition;
- //gameObject.transform.rotation = API_GSXR_Slam.SlamManager.modifyOrientation;
- }
- }
|