The Babylonjs 2dGUI is awesome, but it has limitations (and bugs sometimes).
So, I’ve implemented new way of linking controls positions to meshes and other controls.
Apparently it is not as efficient as built-in implementation, yet it allows more complicated setups, such as linking a control to 2 or more other controls or meshes in any combination.
The bride lines are drawn from edges to center, so that 0-stop of color gradient is at the edges.
The callout lines are drawn from one edge to another so that 0-stop of gradient is at the 1st edge.
I’m actually going to work on sketchup-ish custom solutions with consumer-level UX as my upcoming freelance services.
But I’ll share some snippets open-source, here and on github.