Search the Community
Showing results for tags 'scene.pick'.
-
Hey, Is scene.pick with fastcheck broken? i want to increase the picking area of some meshes, without having to make boxes around them or anything like that. so i recalled there's a fastcheck option in the scene.pick function, which is used to pick boundingboxes, but now i can't seem to get it working; If you click on skull mesh, it is picked, if you click on boundingbox without hitting the actual mesh, it isn't picked. http://www.babylonjs-playground.com/#1PJYD6#3 Any ideas?
-
Help again I have created a simple scene with a single cylinder. The following code runs fine window.addEventListener("click", function () { // We try to pick an object var pickResult = scene.pick(scene.pointerX, scene.pointerY); console.log("HIT "+ pickResult.pickedPoint); }); However, if I import a mesh into the scene with BABYLON.SceneLoader.ImportMesh the window.addEventListener returns a null , that is cannot hit the object. Any clues?
