in order to connect the two boxes with the spring (like in the image), i need to know the angles between the points of location of the boxes (rotation along x, y, and z so i can rotate the spring along these axes);
say v1 is the position of one box, and v2 is of the second.
there is a function v1.angleBetween(v2), where v1 and v2 are vectors, and i get a float out of that.
what does it represent (on what axis is the angle?) and how can i use it to rotate my pretty spring? :)
or should i do it in another way?