How to make head movement like before??? [Solved]
Hi there, it has been a while since i last posted in here, but that is mainly due to the fact that i have an unsolved question... in SDK 0.4.2 i had fixed my issue by changing two line of code from (vector3.up / .forward) to (transform.up / .forward) in the OVRCamera.cs but that is now impossible because the file from 0.4.2 does not exists anymore, and also i cannot find the same lines of code anymore, these lines to be precise:
those two lines i just need to change to:
where target is :
but that is not good enough with the new SDK, so i am asking for assistance to how to make the same functionality in 0.4.3 (or whichever is the newest SDK!) as there was in 0.4.2,
Thanks in advance!
~David
P.S: the two lines can be found (before adding the public variable!) at : 287 & 288!
Vector3 dir = qp * Vector3.forward;
qp.SetLookRotation(dir, Vector3.up);
those two lines i just need to change to:
Vector3 dir = qp * target.transform.forward;
qp.SetLookRotation(dir, target.transform.up);
where target is :
public GameObject target;
but that is not good enough with the new SDK, so i am asking for assistance to how to make the same functionality in 0.4.3 (or whichever is the newest SDK!) as there was in 0.4.2,
Thanks in advance!
~David
P.S: the two lines can be found (before adding the public variable!) at : 287 & 288!
