Hi M! Good to see you again.
I found a demo playground.
It is an older playground, with older DOM pointer events, but tube-updating system is the same way.
Let’s tour it.
A tube named mesh is created in line 29.
A custom function named updatePath() is declared in lines 32-36.
In the constantly-fast-running renderLoop area (lines 46-53)… a VERY special tube-updater happens.
BREAK: You know what? Let’s just install the important parts of that OLD-STYLE playground… into your newer-style drag-behavior playground, and see if we can make it work.
I did a LOT of adjustments on your playground… adjusting the function styles and positions within the code… and I installed the tube updater code. I put-in many comments.
Study it for a while… experiment and play… see if you like it. (I think you will). If you have questions about HOW and WHY it works, just ask… we’ll do our best.
I think you now have the most-modern version of “tube connecting two mesh” in the entire BabylonJS community. (No more old DOM event handlers like seen in that older playground. Yours is modern drag-behavior… very good. I’m book-marking it - twice.)
Oh my, JohnK was faster. I thought he might be nearby and typing… I could hear his keyboard clicking. heh. Hi JK!