From b837a14fc31384fe07a2f1fb61b01ed6d850b87f Mon Sep 17 00:00:00 2001 From: benjaminluck Date: Thu, 8 Jun 2017 01:14:54 +0200 Subject: [PATCH] Updated intersects for touchStart --- js/components/InputController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/components/InputController.js b/js/components/InputController.js index 81dee21..182b461 100644 --- a/js/components/InputController.js +++ b/js/components/InputController.js @@ -107,7 +107,7 @@ function onTouchStart(event){ raycaster.setFromCamera( mouse, camera ); - var intersects = raycaster.intersectObjects( scene.children[1].children, true); + var intersects = raycaster.intersectObjects( scene.children[3].children, true); if ( intersects.length > 0 ) { // alert(mesh.name);