From 48406bb9dd7df38ed7eaccdfb361ce46d244facd Mon Sep 17 00:00:00 2001 From: Philipp Kramer Date: Thu, 16 Jan 2020 16:04:40 +0100 Subject: [PATCH] changes from test session --- Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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+