diff --git a/ShadowEditor.Web/src/helper/ViewHelper.js b/ShadowEditor.Web/src/helper/ViewHelper.js index 7bb015ef..5a6c336c 100644 --- a/ShadowEditor.Web/src/helper/ViewHelper.js +++ b/ShadowEditor.Web/src/helper/ViewHelper.js @@ -171,6 +171,10 @@ ViewHelper.prototype.onMouseDown = function (event) { this.matrix.copy(this.mesh.matrixWorld); + // 旧:projectionMatrix * modelViewMatrix + // 新:translateMatrix * projectionMatrix * _modelViewMatrix + // matrixWorld = + if (this.screenXY === undefined) { this.screenXY = new THREE.Vector3(); }