I have an example of connected lines as displayed here:
Gray line (fixedVerticalTube) is a fixed vertical line on right.
Blue line (extendingParentTube) is slanted and extending (by changing second point’s Y).
Green line (slantingChildTube) has one point on top of gray line and passes thru the top of Blue line.
When blue line extends (by translating its second point on Y axis), green line should also move up/down keeping it’s one end connected with the gray line. This effectively rotates the green line on Z axis.
Playground link (https://www.babylonjs-playground.com/#165IV6#2893) has transformnode created at the end of blue line. I want to rotate Green line such that its one end point stays on gray line and it passes thru the transformnode (purple sphere). Is there any way to find rotation value required to achieve this?
(Green line can be a mesh object so drawing Green line passing thru top of Gray line and CoT isn’t an option.)