BangTao Posted March 21, 2017 Share Posted March 21, 2017 ... I've tried to create a ball and let it intersect with a custom mesh,but it didn't work. http://playground.babylonjs.com/#17141O#0 Or the method "balloon2.intersectsMesh(plan2, true)" at http://playground.babylonjs.com/?10(line 69) is only used with "BoundingBox"? Quote Link to comment Share on other sites More sharing options...
hunts Posted March 21, 2017 Share Posted March 21, 2017 @BangTao console.log(balloon2.intersectsMesh(customMesh)) returns true, what are you really trying to do, please kindly specify. cheers hunts Quote Link to comment Share on other sites More sharing options...
BangTao Posted March 21, 2017 Author Share Posted March 21, 2017 Nope...in my PG:http://playground.babylonjs.com/#17141O#0 the balloon2.material.emissiveColor changed before it intersects customMesh ...and i have set the second param as true.... "balloon2.intersectsMesh(plan2, true)" it's not a right result! @hunts Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 21, 2017 Share Posted March 21, 2017 intersectsMesh only works when the bounding boxes of the meshes intersect. This PG http://playground.babylonjs.com/#17141O#2 shows the bounding boxes and when the balloon changes color relative to the bounding boxes. Wingnut 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.