Greetings, i am currently working on testing something which requires calculating the distance between each box when attached to the wall, as seen in the image below when I move the boxes I want to show the distance between all blocks attached to the wall.
thanks @hofk i reviewed the provided examples, in my case user can attach an undefined number of boxes to the wall, i currently have it like:
for(product=0;product<productsWallConnect[wallName].length;product++) {
// find the product point for forward line
// change the line’s position to next nearer box
// find the product point for the previous line
// change the line’s position to the previous nearer box
}
i am currently clueless, how it can detect the nearest box and attach the line to its position.x