mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
帮助器函数说明。
This commit is contained in:
parent
fa1bcb47f9
commit
aba100e309
@ -465,7 +465,7 @@ Editor.prototype.onMouseDown = function (event) {
|
||||
|
||||
Editor.prototype.onMouseMove = function (event) {
|
||||
this.mouse.x = (event.offsetX / this.renderer.domElement.clientWidth) * 2 - 1;
|
||||
this.mouse.y = - (event.offsetY / this.renderer.domElement.clientHeight) * 2 + 1;
|
||||
this.mouse.y = -(event.offsetY / this.renderer.domElement.clientHeight) * 2 + 1;
|
||||
};
|
||||
|
||||
export default Editor;
|
||||
@ -14,10 +14,20 @@ function BaseHelper(object) {
|
||||
BaseHelper.prototype = Object.create(THREE.Object3D.prototype);
|
||||
BaseHelper.prototype.constructor = BaseHelper;
|
||||
|
||||
/**
|
||||
* 场景中物体状态改变,更新帮助器
|
||||
*/
|
||||
BaseHelper.prototype.update = function () {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* 帮助器改变后,更新物体信息
|
||||
*/
|
||||
BaseHelper.prototype.updateObject = function () {
|
||||
|
||||
};
|
||||
|
||||
BaseHelper.prototype.dispose = function () {
|
||||
delete this.object;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user