Skip to content

Commit 49da62c

Browse files
committed
Remove offset pose
1 parent 6155000 commit 49da62c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,16 @@ An {{XRAnchor}} may have an associated <dfn for=XRAnchor>tracked entity</dfn>, w
156156

157157
An {{XRAnchor}} may have an associated <dfn for=XRAnchor>static origin</dfn>, 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=].
158158

159-
Each {{XRAnchor}} has an associated <dfn for=XRAnchor>offset pose</dfn>, which is an {{XRRigidTransform}}.
160159

161160
Each {{XRAnchor}} has an associated <dfn for=XRAnchor>session</dfn>.
162161

163162
Each {{XRSpace}} obtained from {{XRAnchor/anchorSpace}} has an <dfn for=XRSpace>associated anchor</dfn> that is the {{XRAnchor}} that created it. The [=XRSpace/native origin=] of an {{XRSpace}} with an [=associated anchor=] is the [=XRAnchor/native origin=] of the [=associated anchor=].
164163

165164
Each {{XRAnchor}} has a <dfn for=XRAnchor>native origin</dfn> defined as follows:
166165

167-
- 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=].
166+
- If the {{XRAnchor}} has a [=XRAnchor/tracked entity=] defined, it is the [=native entity/entity origin=] of the [=XRAnchor/tracked entity=].
168167

169-
- If the {{XRAnchor}} has a [=XRAnchor/static origin=] defined, it is the [=multiply transforms|multiplication=] of [=offset pose=] and the [=static origin=].
168+
- If the {{XRAnchor}} has a [=XRAnchor/static origin=] defined, it is the [=static origin=].
170169

171170
<div class="algorithm" data-algorithm="create-anchor-object">
172171
In order to <dfn>create new anchor object</dfn> 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}}
213212
1. Let |session| be |frame|'s [=XRFrame/session=].
214213
1. Add [=update anchors=] algorithm to |session|’s [=XRSession/list of frame updates=] if it is not already present there.
215214
1. Let |effective origin| be |space|'s [=XRSpace/effective origin=].
215+
1. Let |offset origin| be the [=multiply transforms|multiplication=] of |pose| and the current value of |effective origin|.
216216
1. [=Create new anchor object=] |anchor| using |session|.
217-
1. Set |anchor|'s [=static origin=] to the current value of |effective origin|.
217+
1. Set |anchor|'s [=static origin=] to |effective origin|.
218218
1. Set |anchor|'s [=offset pose=] to |pose|.
219219
1. Add |anchor| to |session|'s [=XRSession/set of tracked anchors=].
220220
1. Add a mapping from |anchor| to |promise| to |session|'s [=XRSession/map of new anchors=].

0 commit comments

Comments
 (0)