Hi all!

Is there a way to find the point of intersection between two meshes ?

The example is like the picture below:

Playground:

Intersect Point | Babylon.js Playground (babylonjs.com)

Hi all!

Is there a way to find the point of intersection between two meshes ?

The example is like the picture below:

Playground:

Intersect Point | Babylon.js Playground (babylonjs.com)

This can be a bit complex. Do you need this computation to be realtime like computed once a frame or it can be ‘offline’: computed once in a while and it doesn’t matter if it takes seconds. Also, will the meshes be high poly or not?

For realtime, I would check for a box intersection code. For offline, I’d check the CSG.

This is my iterative method to calculate the closest point between to lines.

Intersection between two lines | Babylon.js Playground (babylonjs-playground.com)