XRReferenceSpace
XRReferenceSpace is a coordinate system used in WebXR to interpret pose data during an immersive session. It defines the reference frame in which positions and orientations of the headset, controllers, and other input sources are reported, enabling consistent placement of virtual content relative to the real world or the user.
A reference space is created by calling a session method such as requestReferenceSpace with a specific type.
The viewer space is centered on the user’s eyes and moves with head motion; poses in this
In each animation frame, developers obtain poses by requesting them relative to a chosen XRReferenceSpace, typically