cartman Posted June 28, 2016 Share Posted June 28, 2016 Hi guys, i tried to use the update function from an older forum post to edit the size of my bounding box. Somehow the bounding box didn't change. Link: http://www.babylonjs-playground.com/#WXK2X#2 Any ideas? Quote Link to comment Share on other sites More sharing options...
ViBe Posted June 28, 2016 Share Posted June 28, 2016 Hi, In fact it works : http://www.babylonjs-playground.com/#WXK2X#3 As said in the older post by @Deltakosh : Quote Warning: if your obejct is displayed, the computeWorldMatrix will be call and will overwrite your change Maybe you have a goal that you don't describe in your post... Quote Link to comment Share on other sites More sharing options...
cartman Posted June 28, 2016 Author Share Posted June 28, 2016 @ViBe i'm trying to make a smaller (scaled down) bounding box compared to the standard one provided by BabylonJS. I want to use the intersectMesh function against this smaller bounding box. Here's my work in progress: http://www.babylonjs-playground.com/#WXK2X#7 I tried using the update() function, but the intersect behavior still didn't change. Any ideas? Quote Link to comment Share on other sites More sharing options...
ViBe Posted June 30, 2016 Share Posted June 30, 2016 So you want a red ball only when this ball is totally inside the sphere ? At my level, I don't know how you can achieve this. Maybe someone else... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 1, 2016 Share Posted July 1, 2016 Here is it: http://www.babylonjs-playground.com/#WXK2X#8 ViBe, cartman and Madclaws 3 Quote Link to comment Share on other sites More sharing options...
cartman Posted July 3, 2016 Author Share Posted July 3, 2016 Thanks @Deltakosh, works like a charm GameMonetize 1 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.