Hey,
I’m currently trying to align an object correctly on two separate devices.
I’ve got both devices networked, the client device successfully downloads and applies the uploaded WorldMap - everything lines up perfectly, I am using an ARReferencePoint to share the position of the ‘placement object’ I am lining up.
I attempt to ‘MakeContentAppearAt’ on both devices when the setup phase of the AR session is complete. At this point for whatever reason I cannot get the same behaviour on both even though they are calling the same code, and printing out whilst running the session on each device tells me they are both using the same ARReferencePoint.Transform for ‘MakeContentAppearAt’.
Here is the code that runs on both host and client devices once the AR WorldMap has been successfully applied
// position the content
sessionManager.sessionOrigin.MakeContentAppearAt
(
map.transform,
mapARReferencePoint.transform.position,
mapARReferencePoint.transform.rotation
);
// scale world data
sessionManager.sessionOrigin.transform.localScale = Vector3.one * scaleFactor;
Any help or suggestions would be greatly appreciated!
Thanks,
Joe