Skip to content

Commit fe08c1b

Browse files
author
Avaer Kazmer
committed
Absorb xr-iframe position/orientation/scale into moveMesh on element add
1 parent 972ff97 commit fe08c1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3210,6 +3210,9 @@
32103210
layers.push(xrIframe);
32113211

32123212
const moveMesh = _makeMoveMesh('volume');
3213+
moveMesh.position.fromArray(xrIframe.position);
3214+
moveMesh.quaternion.fromArray(xrIframe.orientation);
3215+
moveMesh.scale.fromArray(xrIframe.scale);
32133216
moveMesh.xrIframe = xrIframe;
32143217
moveMesh.startTime = Date.now();
32153218
scene.add(moveMesh);

0 commit comments

Comments
 (0)