Hey gang, I’m creating a scene where lines are drawn dynamically between moveable dots:
In the attached example, I have object AB (the line from A to B) and BC (the line sitting on its ass below). Everything works fine, except I’m going to have multiple lines and multiple dots, and I’d prefer not to create a separate function for BC (and CD and DE, etc). Is there a way to call a js function and provide variables, ie, “Call ConnectDots when I drag B and drive AB and BC, but not CD”?
Here’s the scene so far:
dots.hype.zip (15.2 KB)
hypeDocument.getElementById(‘AB’).innerHTML = DistanceAB;