How to get the location of a window in ImmersiveSpace?
In ImmersiveSpace, we can access an entity’s position using the .position(relativeTo: nil) property. Is there a way to get the location of a window?
How to make an entity face north?
The main challenge in solving this problem is how to determine where north is within the coordinate system of RealityView.
I’ve found that RealityView’s coordinate system guarantees that the Y-axis is always perpendicular to the ground (with the Y-axis pointing towards the sky),
but it does not guarantee that the X-axis is parallel to the longitude and the Z-axis is parallel to the latitude.