Update: CC - Demo New - Mouse Move (n9evs68jpd.js) 135 bytes modified

beta.r3js.org
-=yb4f310 2018-02-20 16:26:08 +01:00
parent 78e122fe7a
commit 08d77c8e87
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,8 @@ if (!this.initialized) {
this.raycaster = this.entityLoaded.raycaster;
this.camera = this.entityLoaded.camera;
this.meshImageGrid = this.entityLoaded.meshImageGrid;
this.meshBox = this.entityLoaded.meshBox;
this.initialized = true;
}
@ -31,6 +33,9 @@ var cursorPosition = this.camera.position.clone().add(
)
);
this.meshBox.position.setFrom(cursorPosition);
this.meshBox.updateInstance('position');
this.meshImageGrid.lookAt(cursorPosition);
//@ sourceURL=mouseMove.js