Draw line to Vector 3

Hi!

Is there a way to draw a line to vector 3 instead of an object? In this case:
line.linkWithMesh(sphere);

A hack would be to create an invisible actor to position but this seems a bit counter intuitive if a better option exixts.

https://playground.babylonjs.com/#XCPP9Y#39

You can pass a TransformNode instead of a mesh to linkWithMesh but Vector3 is not supported.

Maybe simply drawing a line with LineMesh instead of a GUI line would be better suited for your needs?

2 Likes