Hi,
I have a stick, modeled as a cylinder, aligned by default to the z axis.
I need to place it so its extremities (the centers of the two discs) are located at positions given by 3D coordinates. For instance, it will go from one point at B=(xb,yb,zb) to another at E=(xe,ye,ze).
If I setPos the cylinder in the middle point between B and E and scale it properly, then I guess a smart computation could give the HPR angles do to the job. Is there a standard function for that? Or maybe a trigonometry wizard knows about a set of formulae I could cast?
Thanks for your help!
B.