I’m trying to get an object to appear in front of the viewer (and then stay there). I’ve got this to work by calculating the center point between the two eyes and using the direction of the left eye (using data from
xrLocateViews with a Stage space) to offset the object, but shouldn’t there be a cleaner way to do this by getting the head orientation/position? I’ve tried getting the pose of
"/user/head", but that doesn’t work on my Quest.
In another thread I’ve seen that I should use a
XR_REFERENCE_SPACE_TYPE_VIEW, but how?
xrLocateViews still returns two orientations/positions. I’ve also tried to use
xrLocateSpace with the view space and stage space as parameters, but that results in a fixed position and orientation, regardless of how I move the headset.
I guess my issue boils down to: how do I get ‘the’ orientation/position of the headset in the stage space?