Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
sh0v0r's avatar
sh0v0r
Protege
11 years ago

How to get the Absolute Head position relative to the Camera

I am trying to do a visualisation of the players head position relative the real world location of the camera.

In the previous SDK there was a method for getting it but it has been removed and I can't find an equivalent.

So far I've been looking here:

Ovr.TrackingState state = OVRManager.capiHmd.GetTrackingState(0);

state.HeadPose.ThePose.Position.x.ToString("F2") + ", " + state.HeadPose.ThePose.Position.y.ToString("F2") + ", " + state.HeadPose.ThePose.Position.z.ToString("F2");

But that gives me the relative position of the last 'centred' location.

1 Reply

Replies have been turned off for this discussion
  • Have a look at OVRManagertracker.GetPose(). It returns the IR tracking camera's pose relative to the OVRCameraRig, which is at the last "centered" location.