Question about drawing lines

I’m looking for a way to draw for e.g. two lines in an angel and the lines should be connected at an intersection point. Then I want the user to be able to drag in one line and the angel relative to the other line should change but the length of the lines should remain the same.
Is this possible in three.js?

A simple answer is “yes”.

For mouse events, you can take a look at these examples:
Mouse events -, its source code and the source code of three.js/DragControls.js at master · mrdoob/three.js · GitHub ;
Interactive lines - three.js examples ;
Operations with vectors - three.js docs .

Something more specific - you have to try to create that “something” yourself and if/when you stuck, come here again :slight_smile:

1 Like

I will take a look at the examples.