cancel
Showing results for 
Search instead for 
Did you mean: 

Change "Tracker sensor" device script (Unity 5.4.0f2)

Nebouw
Explorer
Hey all,

I wan't to turn off the "reset position" in Unity when the Tracking sensor has moved 22.5 degrees.

We are a company who build a device for walking in scénes. At times we want to rotate the "Tracking sensor" around the player.
Every time we do that now, the "Tracking sensor" device reset the hmd. This gives a stutter and rotates the scene too.

How can we disable the function in Unity 5.4.0f2. (we used the native Oculus option in Unity
4 REPLIES 4

vrdaveb
Oculus Staff
Try making your Camera GameObject a child of another GameObject. Then you can watch for changes in the child's rotation and set the parent's transform to whatever you want.

Nebouw
Explorer
I tried that, but the stutter is still active by every turn

Fulby
Heroic Explorer
Are you reading the cam rotation in Update or LateUpdate? I had to use LateUpdate to remove jitter from a headlocked GUI, and it may be the same problem.

Nebouw
Explorer
How do you script that?