Skip to main content
New Participant
March 22, 2024

Shared Anchor Alignment is different per headset. Unity

Some headsets work, others dont.

I landed on a alignment solution that seems to work well on 4 different headsets. This is surprisingly more simple than what the meta sample code does (that i never got working). But we have 1 singular headset that consistently seems align to the shared anchor about 180 degrees wrongly rotated around the anchor. Why is this, is it not supposed to be the same?

 

_cameraRigTransform.position = _cameraRigTransform.position - anchor.transform.position;
_cameraRigTransform.rotation =  anchor.transform.rotation;

 

Semi-related to my other post about how to do it in general:

How to propperly Align Players/OVRCameraRigs to Sh... - Meta Community Forums - 1170624 (atmeta.com)