Get line length between two mesh

Hi All,

its possible to get line length like this ?
sample

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

thanks

You can compute the intersection of a ray with both meshes and get the distance between the two intersection points:

https://www.babylonjs-playground.com/#165IV6#3964

1 Like

Hi @Evgeni_Popov thanks :slight_smile: