Skip to content

Commit

Permalink
Fix deprecated Three.js Quaternion API in three-utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox committed Sep 27, 2021
1 parent 2a22a88 commit cf7faec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/three-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const interpolateAffine = (function() {
return function(startMat4, endMat4, progress, outMat4) {
start.quaternion.setFromRotationMatrix(mat4.extractRotation(startMat4));
end.quaternion.setFromRotationMatrix(mat4.extractRotation(endMat4));
THREE.Quaternion.slerp(start.quaternion, end.quaternion, interpolated.quaternion, progress);
interpolated.quaternion.slerpQuaternions(start.quaternion, end.quaternion, progress);
interpolated.position.lerpVectors(
start.position.setFromMatrixColumn(startMat4, 3),
end.position.setFromMatrixColumn(endMat4, 3),
Expand Down

0 comments on commit cf7faec

Please sign in to comment.