Search the Community
Showing results for tags 'OnPickTrigger'.
-
PLAYGROUND : http://playground.babylonjs.com/#1GM4YQ#123 PROBLEM: Clicking on GREY boxes displays wrong message. Should work the same as clicking on RED boxes. MORE INFO: One function is creating elements from predefined array. Second function is dynamically creating elements using FOR loop and I don't quite understand why it is not working properly. As you can see on the playground: clicking on RED boxes works just fine. The browser correctly displays clicked box's index. However, clicking on GREY boxes always displays the same message. Thank you for reading, Saafine
- 6 replies
-
- onpicktrigger
- actions
-
(and 3 more)
Tagged with:
-
Hi guys, I have a mesh with two triggers assigned to its actionManager: ground.actionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function (event){ console.log("OnPickTrigger"); })); ground.actionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnLongPressTrigger, function (event){ console.log("OnLongPressTrigger"); })); The thing is, when the OnLongPressTrigger is triggered, the OnPickTrigger is also triggered. Is there any way to avoid triggering the onPickTrigger? Thanks in advance!
- 2 replies
-
- trigger
- onlongpresstrigger
-
(and 3 more)
Tagged with:
-
Hello, I'm using a ActionManager.OnPickUpTrigger to trigger a translation of an object. It works well, and was surprisingly easy to setup. But I have a problem : actions are triggered even if the object is hidden behind another one. You can check it on this babylon playground : http://www.babylonjs.com/playground/?17 If you click on a target through the moving torus, the target is picked and triggered anyway, as if it was visible. Is it the correct behaviour ? Should I use a more traditionnal picking code instead ?
- 3 replies
-
- Action
- ActionManager
-
(and 2 more)
Tagged with: