Connecting lines

Hello Everyone,

I am trying to draw a connector tube between two objects, one of which is parented to the Camera.

How can I get it so that the tube isn’t repeated? I want one tube visible all the time:

(Move around and you’ll see the screen cluttered with tubes)

Thanks in advance for your help!

Hello,

You have to initially create the tube passing the updatable: true option, and then whenever you recreate it, pass itself on the instance parameter so it knows to reuse the same tube: connecting lines | Babylon.js Playground (babylonjs.com)

1 Like

Thank you so much!