Update: CC - Demo New - Mouse Move (n9evs68jpd.js) 68 bytes modified
parent
5e8a4188ea
commit
896cf4363d
|
@ -8,7 +8,7 @@ if (!this.initialized) {
|
||||||
this.camera = this.entityLoaded.camera;
|
this.camera = this.entityLoaded.camera;
|
||||||
this.meshImageGrid = this.entityLoaded.meshImageGrid;
|
this.meshImageGrid = this.entityLoaded.meshImageGrid;
|
||||||
this.meshBox = this.entityLoaded.meshBox;
|
this.meshBox = this.entityLoaded.meshBox;
|
||||||
|
this.lookatTarget = null;
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,9 +35,11 @@ var cursorPosition = this.camera.position.clone().add(
|
||||||
|
|
||||||
cursorPosition.z = 3;
|
cursorPosition.z = 3;
|
||||||
|
|
||||||
this.meshBox.position.setFrom(cursorPosition);
|
this.lookAtTarget = cursorPosition;
|
||||||
this.meshBox.updateInstance('position');
|
|
||||||
|
|
||||||
this.meshImageGrid.lookAt(cursorPosition);
|
//this.meshBox.position.setFrom(cursorPosition);
|
||||||
|
//this.meshBox.updateInstance('position');
|
||||||
|
|
||||||
|
//this.meshImageGrid.lookAt(cursorPosition);
|
||||||
|
|
||||||
//@ sourceURL=mouseMove.js
|
//@ sourceURL=mouseMove.js
|
Loading…
Reference in New Issue