Trimesh inside Trimesh

Is there a non-bounding way to check if your inside a trimesh? If not then that OK but would make my game alot better at intersections.

tirmesh1.hasCollision(trimesh2,true)



the true in the hasCollsions means TriangleAccurate....
ttrocha said:

tirmesh1.hasCollision(trimesh2,true)



the true in the hasCollsions means TriangleAccurate....
That only checks to see if you are touching one of the triangles on the mesh, I need inside the mesh.

Well, if you ask imprecise questions it's quite sure you won't get the right answer. It would

be a bit easier to answer you if you describe your problem a bit more and not assume everyone see

all this colorful pictures in your head.



To your problem as I think you mean it: As far as I know there is no way in jME to check for a mesh that is surounded my another mesh.

The question is, how does it come inside? Is it moving inside (so it has to pass a triangle before).

If you are already inside and want to check for it you could fire rays in all directions and check for collision if

every ray hits you can be quite sure that you are inside.