【发布时间】:2020-11-23 06:52:28
【问题描述】:
我正在尝试使旋转平面正常。我的解决方案是复制更新的平面,然后获取法线。 当我只旋转 1 个角度时它可以工作,但不能旋转 2 或 3 个角度。 jsFiddle
绿色的是复制平面,紫色的是旋转平面。 enter image description here
如何解决这个问题?请帮帮我
我的复制功能:
function copyPlane() {
let copyPlaneGeom = new THREE.PlaneGeometry(3, 3, 3);
copyPlaneGeom.rotateX(plane.rotation.x);
copyPlaneGeom.rotateY(plane.rotation.y);
copyPlaneGeom.rotateZ(plane.rotation.z);
let copyPlane = new THREE.Mesh(copyPlaneGeom, new THREE.MeshBasicMaterial({color: 0x00ff00}));
scene.add(copyPlane)
let normals = copyPlane.geometry.faces[0].normal
【问题讨论】: