There are a few questions that need to be answered first. Will box object be stretching to maintain connection? If no, do you want to control the max distance of movement by the rig or let the animator handle it? Does the box piece stay in the same position and only rotate to point to the 2 cylinders? Will it be the same movement every time? for example: when you push positive on the Y axis the one on the x axis automatically moves to the right. Then when you go down(negative on y) the X moves left.