diff --git a/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs b/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs index 6983665..816739c 100644 --- a/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs +++ b/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs @@ -227,7 +227,7 @@ public class ZEDManager : MonoBehaviour //public bool headfree = false; public bool zLockZED = false; - public bool ZLockCam = false; + public bool ZLockCam = true; @@ -1976,13 +1976,15 @@ public class ZEDManager : MonoBehaviour } - if (zLockZED) + //if (zLockZED) + if (true) { Vector3 zedDirection = new Vector3(0, 0, 1); //Create Vector towars Z+ zedDirection = zedRigDisplayer.transform.rotation * zedDirection; //rotate vector by zedRigRotation (vector should point towards +Z of zedRigDisplayer) camRigDisplayer.transform.localRotation = Quaternion.AngleAxis(zedRigDisplayer.transform.localEulerAngles.z, zedDirection); //rotate only around zedDirection.z with respect to original coordinate system } - if (ZLockCam) + //if (ZLockCam) + if (false) { //same for camera Z rotation compensation Vector3 hmdDirection = new Vector3(0, 0, 1); //Create Vector towars Z+