diff --git a/VirtualShop.html b/VirtualShop.html index 2fb5ab8..668e5e8 100644 --- a/VirtualShop.html +++ b/VirtualShop.html @@ -201,7 +201,7 @@ raycaster.setFromCamera(mouse, camera); const intersects = raycaster.intersectObjects(scene.children, true); if (intersects.length > 0) { - if (intersects[0].object.name == "stick") { + if (intersects[0].object.name == "back") { window.open("buy.html"); } console.log(intersects[0]);