cancel
Showing results for 
Search instead for 
Did you mean: 

Hand Tracking Pointer Pose & Reset orientation and position [RESOLVED]

Symon_231
Level 2

Hi,

 

I am having some issues with using the Pointer Pose and the Reset Orientation and Position. Whenever I reset the orientation and position the pointer pose is not aligned with my forward direction anymore. The pointer pose keeps pointing in the same direction as before calling the Reset Orientation and Position. 

 

I have tried all sorts of work arounds and solutions but it seems that no matter what the pointer pose will always point in the direction of the VR room space. 

 

Is this to be expected? Or is there a solution to this?

 

Thanks

1 REPLY 1

Symon_231
Level 2

I have found the solution to the problem and I must say it's not straight forward at all.

 

Calling reset orientation and position ultimately seems to call SetBaseRotationAndBaseOffsetInMeters in the oculus function library passing in the values to be applied as a delta and an offeset on the camera. The delta and offset values seem to be kept around and therefore you can call GetBaseRotationAndBaseOffsetInMeters at any point to retrieve the applied delta and offset. This means that to get the final pointer pose you will have to apply the base rotation negated yaw on the pointer transform before using it. I didn't quite figure out the location though but since I don't need it, it's fine for me.

 

Capture.PNG

 

That is the final result and for anyone wondering the GetBoneLocation nodes are mine and not part of the oculus input function library.