We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b700ca6 commit c854fd5Copy full SHA for c854fd5
src/components/anchored.js
@@ -52,8 +52,9 @@ module.exports.Component = registerComponent('anchored', {
52
refSpace = xrManager.getReferenceSpace();
53
54
pose = frame.getPose(this.anchor.anchorSpace, refSpace);
55
- object3D.matrix.elements = pose.transform.matrix;
56
- object3D.matrix.decompose(object3D.position, object3D.rotation, object3D.scale);
+ // Apply position and orientation, leave scale as-is (see aframevr/aframe#5630)
+ object3D.position.copy(pose.transform.position);
57
+ object3D.quaternion.copy(pose.transform.orientation);
58
},
59
60
createAnchor: async function createAnchor (position, quaternion) {
0 commit comments