这应该非常非常简单 - 但是因为不工作而破坏了我的头脑。
console.log(this.cameraTarget.position); // THREE.Vector3 {x: 374, y: 0, z: -186, constructor: function, set: function…}
var targetSphere = new THREE.Mesh(new THREE.SphereGeometry(10, 100, 100), new THREE.MeshNormalMaterial());
targetSphere.position = this.cameraTarget.position;
console.log(targetSphere.position); // THREE.Vector3 {x: 0, y: 0, z: 0, constructor: function, set: function…}
因此this.cameraTarget是一个具有position属性的对象(不是Object3D),它是一个Vector3。当我将它分配给Mesh的position属性时,它会被忽略。完全。有什么想法吗?