Draw line with mouse in 3D space

Hello everyone!

I want to draw a line by mouse-click. I want to click somewhere in my scene, create a line and lengthen it by dragging the mouse. In the end, the line should disappear. I’ve seen examples of drawing lines on a ground mesh, but I can’t find a way to do it somewhere in a 3D space. I’ve created a playground, but sadly nothing is visible so far.

1 Like

You need a mesh to pick from :slight_smile: doing pick in the void will never return anything.

2 Likes

I fixed my issue by creating a invisible sphere mesh
Updated playground:

2 Likes