Hello all,
is there a way to evaluate intersection between plane mesh and ground mesh? It does not work for me. Here my PG, iirc it did in the past, else i must have missed something.
Hello all,
is there a way to evaluate intersection between plane mesh and ground mesh? It does not work for me. Here my PG, iirc it did in the past, else i must have missed something.
Hmmm I tried checking your PG in 4.2.1 and it didn’t work either, but that makes sense, because intersectsMesh checks the bounding box (either object aligned or axis aligned), and in any of these cases the ground’s BB will be intersecting with the plane’s BB. If the collider wasn’t a plane moveWithCollisions could be an alternative Camera Collisions | Babylon.js Documentation (babylonjs.com), but the plane doesn’t work well with an ellipsoid collision shape…
For this case you’d probably have to check the triangle-plane intersection with all of the groundmap’s triangles, or do some kind of partial occlusion query… @Evgeni_Popov any ideas?