Skip to content

Commit

Permalink
Updated intersects for touchStart
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminluck committed Jun 7, 2017
1 parent bc080c5 commit b837a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/InputController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b837a14

Please sign in to comment.