I decided to do some playground testing of this stuff, and using Cedric’s good advice.
Click boxes to activate drag gizmo on each.
Thanks to the original author of this playground series… whomever that was. It made a great starter playground for us, here.
Most of the fun… happens in lines 63-77. There, I create a dispose’n’recreate function named updateTubes (there might be a better way to update tubesMesh, but maybe not).
In lines 71-77, I attach observers to the X and Z drag-events… which simply call updateTubes.
Although we are using tubeMesh (createTube) in a way similar to linesMesh (createLine), I don’t think tubeMesh has the “easy update” feature that linesMesh has.
So, I dispose the old tubes, and recreate, over and over very fast, as the drags happen. (inside updateTubes func)
Want to have y-drag observing/tubesUpdate, too? Easy… I added lines 79-81, here.
Ok, that’s all I have. I wanted to see it, test it, and make sure things are understood, here. We needed something to play-with, eh? That’s what the playground is all-about, right? Good fun.