Skip to main content
sh0v0r
Up and Coming
October 25, 2014

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.
    This topic has been closed for replies.

    1 reply

    Inspiring
    October 27, 2014
    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.