Hi, how would one go about colliding a Sphere geometry with a TerrainPatch at the mesh level to obtain the terrain’s mesh triangles intersecting with that Sphere? inb4 try with a RAY instead of a mesh… I know, I’ve been using rays for other collideWith situations, but for this one I need to collide with something larger than a ray and I figured instead of puncturing the terrain with 10000 rays a second, I’d simply intersect and read the CollisionResults array to get the triangles. I tried various ways including this:
dat_terrain_patch.collideWith(dat_geometry.getMesh().getBound(), results);
dat_terrain_patch.collideWith(dat_geometry_parent_node.getWorldBound(), results);
…all of which don’t collide. Any ideas? :-/
Also, am I wrong to assume it’s impossible to get what I explained using a GhostControl? (Overlapping Objects which will only tell me what objects it intersects with but not which triangles of their mesh, right?)
Thx for all inputs.