samlan Posted November 29, 2015 Share Posted November 29, 2015 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/?17If 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 ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 29, 2015 Share Posted November 29, 2015 For performance reason, the action manager only cycles through meshes with a PickUp trigger. So the best way for you will be to add a pickup trigger that do nothing on your donut http://www.babylonjs-playground.com/#1Q1DYO#0 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 29, 2015 Share Posted November 29, 2015 For performance reason, the action manager only cycles through meshes with a PickUp trigger. So the best way for you will be to add a pickup trigger that do nothing on your donut http://www.babylonjs-playground.com/#1Q1DYO#0 That's a nice trick. Quote Link to comment Share on other sites More sharing options...
samlan Posted November 29, 2015 Author Share Posted November 29, 2015 For performance reason, the action manager only cycles through meshes with a PickUp trigger. So the best way for you will be to add a pickup trigger that do nothing on your donut http://www.babylonjs-playground.com/#1Q1DYO#0Ahh that's smart.That worked, thank you Deltakosh ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.