amorgan Posted December 7, 2014 Share Posted December 7, 2014 I am using the Actions Manager and am trying to use the OnIntersectionEnterTrigger on a (child) mesh that has a parent, but seems to be firing on the parent mesh? Is this the right behavior? The mesh I would like for it to fire on is smaller than the overall parent mesh. Thanks. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 8, 2014 Share Posted December 8, 2014 Hello amorgan Can you reproduce the example in the playground ?So we can help you to see the effect Quote Link to comment Share on other sites More sharing options...
amorgan Posted December 9, 2014 Author Share Posted December 9, 2014 Thank you for the advice on using the playground (should have done that already haha). So it looks like it has to do with assigning more than one action of the same type. I am specifically using ExecuteCodeAction, then OnIntersectionEnterTrigger (and OnIntersectionExitTrigger), take a look: http://www.babylonjs-playground.com/#GYU8E#2 Is this how it is supposed to work? Otherwise, is it possible to have multiple triggers for OnIntersectionEnterTriggerif I have N to M relationships? Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 9, 2014 Share Posted December 9, 2014 Thank you for the repro-case It looks like the OnIntersectionExitTrigger and OnIntersectionEnterTrigger are called event if the parameter isn't the appropriate mesh.I'm going to debug it and see what is the effect in the BabylonJS code Quote Link to comment Share on other sites More sharing options...
amorgan Posted December 9, 2014 Author Share Posted December 9, 2014 Thanks for looking into this! Quote Link to comment Share on other sites More sharing options...
amorgan Posted December 12, 2014 Author Share Posted December 12, 2014 I hvae been trying to parse the code and see if I could find what is causing this, but I have yet to find it. Any luck? Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 15, 2014 Share Posted December 15, 2014 Unable to find where is the problem I think you should create actions (or actions that don't work) using a classic JS code in your application loop Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 15, 2014 Share Posted December 15, 2014 I'll have a look quickly to check what's going wrong Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 15, 2014 Share Posted December 15, 2014 Bug fixed. I'll publish a new version soon julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
amorgan Posted December 15, 2014 Author Share Posted December 15, 2014 Awesome. Thank you so much! Quote Link to comment Share on other sites More sharing options...
amorgan Posted December 18, 2014 Author Share Posted December 18, 2014 So I see that you have fixed this (works in playground). Is it now in version 2.0? or Where can I find the new version (most stable)? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 18, 2014 Share Posted December 18, 2014 I keep this file up to date (latest dev version):https://github.com/BabylonJS/Babylon.js/blob/master/babylon.2.0-alpha.js Quote Link to comment Share on other sites More sharing options...
amorgan Posted December 18, 2014 Author Share Posted December 18, 2014 Thanks! I appreciate your team's level of support and the community members! 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.