Hello,
We’re using ARSessionOrigin to place our content at a user-selected location. During the placement phase, we raycast from the camera, draw a cursor, and when they press “OK”, we call:
MyArSessionOrigin.MakeContentAppearAt(WorldOrigin.transform, MyCursor.transform.position, MyCursor.transform.rotation);
(WorldOrigin is a GameObject at the world origin. Our levels are authored so that they are centred on the world origin, too.)
This works well the first time, we even change the scale as well. We set a large (ish) scale on the ARSessionOrigin, around 50, so that our large content gets (apparently) scaled down to roomscale.
If you want to re-place the AR play area, you can re-enter the mode, and the raycasting and placing the cursor works fine. But when you select “OK”, and we call MakeContentAppearAt() for the second time with the same parameters, it is offset from where you selected. It can also be rotated off-axis.
Am I doing something wrong or is it potentially a bug? Is there a way to “reset” the ARSessionOrigin so I get the nice results seen the first time around?