Get line length between merged mesh

hi all,

can i get line length between merged mesh ?

this is my code :
https://www.babylonjs-playground.com/#165IV6#4004

I don’t think there’s a method that returns all the intersections of a ray with a mesh…

Maybe that would be something we could add? @Deltakosh?

1 Like

I think the scene.multiPick can do it but this needs to be checked

1 Like

Unfortunately no, multiPick can return multiple intersections, but only one per mesh.

It’s Mesh.intersects that currently can’t return several intersections, it can only return a single one (either the first one if fastCheck=true or the nearest one).

1 Like

ok so this is something that needs to be added if we want it

1 Like