I am trying to create an industrial robot model with moving parts (movement controlled with dat.gui panel).
Issue: I cant figure out how to make the rope part (number 3 in the image) which would adjust it's length when the 'hook' part (number 2) is being moved up and down. The rope should stay connected to the hook and base (number 1) at all times.
I initially tried using tube geometry, but couldn't figure out how to correctly manipulate it to get the desired result.
you can find source code here: https://gitlab.com/enrika/three.js-studies/blob/cfabd98a08b84566a6de2839328d3bd7c95442a8/robot
Perhaps there is a specific shape that would be easier to work with? Any feedback and tips are appreciated!
If I got you correctly, then you can use scaling of the rope's mesh: