diff --git a/index.bs b/index.bs index 3ba5b35..e84dd5b 100644 --- a/index.bs +++ b/index.bs @@ -156,7 +156,6 @@ An {{XRAnchor}} may have an associated tracked entity, w An {{XRAnchor}} may have an associated static origin, which is a position and orientation in world space. An {{XRAnchor}} returned to the user MUST either have a [=XRAnchor/tracked entity=] or an [=XRAnchor/static origin=]. -Each {{XRAnchor}} has an associated offset pose, which is an {{XRRigidTransform}}. Each {{XRAnchor}} has an associated session. @@ -164,9 +163,9 @@ Each {{XRSpace}} obtained from {{XRAnchor/anchorSpace}} has an Each {{XRAnchor}} has a native origin defined as follows: - - If the {{XRAnchor}} has a [=XRAnchor/tracked entity=] defined, it is the [=native entity/entity origin=] of the [=XRAnchor/tracked entity=], offset by [=offset pose=]. In other words it is the [=multiply transforms|multiplication=] of [=offset pose=] and the [=native entity/entity origin=] of the [=native entity=]. + - If the {{XRAnchor}} has a [=XRAnchor/tracked entity=] defined, it is the [=native entity/entity origin=] of the [=XRAnchor/tracked entity=]. - - If the {{XRAnchor}} has a [=XRAnchor/static origin=] defined, it is the [=multiply transforms|multiplication=] of [=offset pose=] and the [=static origin=]. + - If the {{XRAnchor}} has a [=XRAnchor/static origin=] defined, it is the [=static origin=].
In order to create new anchor object from |session|, the user agent MUST run the following steps: @@ -213,8 +212,9 @@ The {{XRFrame/createAnchor(pose, space)}} method, when invoked on an {{XRFrame}} 1. Let |session| be |frame|'s [=XRFrame/session=]. 1. Add [=update anchors=] algorithm to |session|’s [=XRSession/list of frame updates=] if it is not already present there. 1. Let |effective origin| be |space|'s [=XRSpace/effective origin=]. + 1. Let |offset origin| be the [=multiply transforms|multiplication=] of |pose| and the current value of |effective origin|. 1. [=Create new anchor object=] |anchor| using |session|. - 1. Set |anchor|'s [=static origin=] to the current value of |effective origin|. + 1. Set |anchor|'s [=static origin=] to |effective origin|. 1. Set |anchor|'s [=offset pose=] to |pose|. 1. Add |anchor| to |session|'s [=XRSession/set of tracked anchors=]. 1. Add a mapping from |anchor| to |promise| to |session|'s [=XRSession/map of new anchors=].