Skip to content

Commit

Permalink
fix: Update deprecated setRotationFromQuaternion
Browse files Browse the repository at this point in the history
now makeRotationFromQuaternion
  • Loading branch information
hi-liang committed Apr 23, 2022
1 parent 93ab7e2 commit 2b0d0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/armarker/armarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ AFRAME.registerSystem('armarker', {
const scale = new THREE.Vector3();
markerPose.decompose( pos, quat, scale );
const markerPoseNoScale = new THREE.Matrix4(); // create a world matrix with only position and rotation
markerPoseNoScale.setRotationFromQuaternion( quat );
markerPoseNoScale.makeRotationFromQuaternion( quat );
markerPoseNoScale.setPosition( pos );
const marker = Object.assign({}, sceneTag.data, {
obj_id: sceneTag.el.id,
Expand Down

0 comments on commit 2b0d0c8

Please sign in to comment.