我可以更改MainCamera位置以在桌面模式下跟踪对象,但它不适用于Oculus Rift。
transform.position = Vector3.Lerp(transform.position, myobj.transform.position + new Vector3(0, 0, 70), Time.deltaTime * 10);
Vector3 relativePos = myobj.transform.position - transform.position;
Quaternion rotation = Quaternion.LookRotation(relativePos);
transform.rotation = rotation;
如何使用Oculus Rift更改它?