servusdei Posted November 26, 2018 Share Posted November 26, 2018 Hello, So I have a plane (which I use only as sort of box collider, so I have it invisible) and I would like to be able to know whenever that plane intersect a mesh (any mesh). - I looked at : mesh1.intersectsMesh(mesh2, false) but it's not useful to me because I have to specify a target mesh. - As for raycast, I dunno how they can be usefull to me since I want to check intersection with a plane not a ray. Any other solutions ? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 26, 2018 Share Posted November 26, 2018 Hi @servusdei and welcome to the forum. If you want to check whether the plane colldes with any mesh you need to do plane.intersectsMesh(mesh) for all meshes in the scene. The array scene.meshes holds all the meshes in the scene. servusdei 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.