three.js 矩阵变换



 var newmar = new THREE.Matrix4();
newmar.set(
  0.999726, -0.022460, -0.006620, 0.000000,
  0.019442, 0.953770, -0.299909, 0.000000,
  0.013050, 0.299698, 0.953945, 0.000000,
  -0.217119, -3.330929, 1.543272, 1.000000
);

console.log(newmar);

var m=top.children[0].children[7]
    m.matrix.copy(newmar);
    // m.matrixWorldNeedsUpdate = true;
   m. matrixAutoUpdate=false

  m.updateMatrix();
console.log(top.children[0].children[7].matrix);

在上面的程序中,我尝试修改模型的矩阵,但是最后一步打印的数据没有变化,这是为什么啊


var newmar = new THREE.Matrix4();
newmar.set(
  0.999726, -0.022460, -0.006620, 0.000000,
  0.019442, 0.953770, -0.299909, 0.000000,
  0.013050, 0.299698, 0.953945, 0.000000,
  -0.217119, -3.330929, 1.543272, 1.000000
);

console.log(newmar);

var m = top.children[0].children[7];
m.matrix.copy(newmar);
m.matrixAutoUpdate = true;

console.log(top.children[0].children[7].matrix);