setEulerFromRotationMatrix does not exist in three.js?
问题 I am trying to use the following to rotate my mesh on its own y axis: // Rotate an object around an arbitrary axis in object space var rotObjectMatrix; function rotateAroundObjectAxis(object, axis, radians) { rotObjectMatrix = new THREE.Matrix4(); rotObjectMatrix.makeRotationAxis(axis.normalize(), radians); object.matrix.multiplySelf(rotObjectMatrix); // post-multiply // new code for Three.js r50+ object.rotation.setEulerFromRotationMatrix(object.matrix); // old code for Three.js r49 and