From b5ff587433c927afc5caa102cad06d08343c8a11 Mon Sep 17 00:00:00 2001 From: Rik Cabanier Date: Mon, 23 Sep 2024 16:42:18 +0000 Subject: [PATCH] Add language to account for empty transform in XRReferenceSpaceEvent --- index.bs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 19f44628..5ed10286 100755 --- a/index.bs +++ b/index.bs @@ -2510,7 +2510,9 @@ dictionary XRReferenceSpaceEventInit : EventInit { The referenceSpace attribute indicates the {{XRReferenceSpace}} that generated this event. -The transform attribute describes the post-event position and orientation of the {{XRReferenceSpaceEvent/referenceSpace}}'s [=native origin=] in the pre-event coordinate system. +The optional transform attribute describes the post-event position and orientation of the {{XRReferenceSpaceEvent/referenceSpace}}'s [=native origin=] in the pre-event coordinate system. This attribute MAY be `null` if the {{XRSystem}} can't determine the delta between the old and the new coordinate system. + +NOTE: situations where {{XRReferenceSpaceEvent/referenceSpace}} or {{XRReferenceSpaceEventInit/referenceSpace}} can be when the headset was doffed and donned between 2 seperate locations. In such cases, if the experience relies on world-locked content, it should warn the user and reset the scene. Event Types {#event-types} -----------