Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Metzada's avatar
Metzada
Honored Guest
4 years ago

Handtracking app - true recenter API for Unity

Hi all!

 

I'm making an hand-tracking game as a seated or standing experience.

While standing, the user sometimes move around a bit, after time its offset causes the game to act weird for obvious reasons.

 

While recentering with controller is very easy and intuitive, doing so with hand tracking is pretty complex, therefore I'm doing an automatic recenter if an offset is detected. It works with Link but not with Quest 2.

 

Is there a way to do a recenter in Unity without moving the whole game objects in the scene?

 

In Unity, this line doesn't work for the Quest 2 (does work for Link):

OVRManager.display.RecenterPose();

With controllers it's ok, I guess, but for hand-tracking I believe we need a better solution than disabling this option.

 

Alternatively - is there a way to mark the experience as seated/standing and make this line work for the Quest 2?

 

Many thanks!

 

Similar to this subject 

No RepliesBe the first to reply