cartman Posted June 19, 2016 Share Posted June 19, 2016 Hi guys, i'm going through the intersection tutorial and found something odd. In this example: http://playground.babylonjs.com/#TNFUK#1, somehow the console prints 'balloon1 intersects plan1' even before it starts intersecting with the bounding box.. Can anyone offer a suggestion/fix? Quote Link to comment Share on other sites More sharing options...
adam Posted June 19, 2016 Share Posted June 19, 2016 You can either call balloon1.computeWorldMatrix(true) on line 34 or you can use scene.registerAfterRender instead of scene.BeforeRender. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
cartman Posted June 19, 2016 Author Share Posted June 19, 2016 @adam thank you, works like a charm. 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.