Problem with Player
I am having a problem with my OVRPlayer.
I have a room with a number of doors. I have a script which opens the various doors. I'm using "if (Physics.Raycast (transform.position, transform.forward, out hit, distTo))" to detect my position in front of the door. If I use the mouse to rotate my character, the desired door opens as designed. But if I use the HMD head tracking to rotate to the door, 'forward' doesn't seem to work. It seems to be tied to the last angle (character rotation) as set by using the mouse.
Does this mean that my head tracking rotation is not working? Or how do I lock the direction of the player to the direction as seen by head tracking.
Thanks in advance for any help.
I have a room with a number of doors. I have a script which opens the various doors. I'm using "if (Physics.Raycast (transform.position, transform.forward, out hit, distTo))" to detect my position in front of the door. If I use the mouse to rotate my character, the desired door opens as designed. But if I use the HMD head tracking to rotate to the door, 'forward' doesn't seem to work. It seems to be tied to the last angle (character rotation) as set by using the mouse.
Does this mean that my head tracking rotation is not working? Or how do I lock the direction of the player to the direction as seen by head tracking.
Thanks in advance for any help.
