How update to Tube path

Hello
I need to update the tube location but failed to do so. Is this possible in babylonjs?

Tube as Line | Babylon.js Playground (babylonjs.com)

why not using tube.position https://playground.babylonjs.com/#MRE78Z#218

Thank you but i want to change only one point. The .position change all tube. This couse i want to change position but use path.

1 Like

Hi. Dynamically Morph A Mesh | Babylon.js Documentation

Here it is https://playground.babylonjs.com/#MRE78Z#219

1 Like

if I want to instance tube,I want to Push a new Vector3 onto the tube path array,the path array’s length will add one length,there is an error:TypeError: Cannot set properties of undefined (setting ‘x’)
at Path3D.update (math.path.ts:585:28)
at Object.CreateTube (tubeBuilder.ts:155:33)
at updataTube (tubeScene.ts:92:24)
at Observer.callback (tubeScene.ts:37:9)
at Observable.notifyObservers (observable.ts:325:49)
at PointerDragBehavior.releaseDrag (pointerDragBehavior.ts:328:38)
at Observer.callback (pointerDragBehavior.ts:268:26)
at Observable.notifyObservers (observable.ts:325:49)
at Observer.callback (utilityLayerRenderer.ts:242:68)
at Observable.notifyObservers (observable.ts:325:49)

Tube as Line | Babylon.js Playground (babylonjs.com)

You can’t increase the number of points once creating the tube, just their positions.

EDIT: Made that clearer in docs: Update tubeBuilder docs. by carolhmj · Pull Request #12997 · BabylonJS/Babylon.js (github.com)

2 Likes