Graphics 如何通过直接操纵矩阵元素以3J旋转object3d?
现在我要做的是沿z轴平移Graphics 如何通过直接操纵矩阵元素以3J旋转object3d?,graphics,3d,three.js,Graphics,3d,Three.js,现在我要做的是沿z轴平移 object.matrix.elements[14] += (0.1); object.matrixWorldNeedsUpdate = true; 如何将同一个对象绕z轴顺时针旋转5度?像这样的东西怎么样: var rotationMatrix = new THREE.Matrix4().makeRotationZ(THREE.Math.degToRad(5)); object.position.applyMatrix4(rotationMatrix); 在thr
object.matrix.elements[14] += (0.1);
object.matrixWorldNeedsUpdate = true;
如何将同一个对象绕z轴顺时针旋转5度?像这样的东西怎么样:
var rotationMatrix = new THREE.Matrix4().makeRotationZ(THREE.Math.degToRad(5));
object.position.applyMatrix4(rotationMatrix);
在three.js中,最好不要直接操作对象矩阵。看,我想知道你为什么要这样做-对象的旋转属性有什么问题?