Hey !<div><br></div><div>So I send a mail some time ago to the list and got no answer, so I guess it was not really clear.</div><div><br></div><div>I come now with a more simple version of my problem.</div><div><br></div><div>

I have two cubes,</div><div><br></div><div>cube A</div><div>translationXYZ 0 0 0</div><div>rotationXYZ 0 0 0</div><div><br></div><div>and cube B</div><div>translationXYZ 12 5 6</div><div>rotationXYZ 0 0 0</div><div><br></div>

<div>now I want to calculate with only thoses informations, the rotations in X Y and Z for cube A to look at cube B. (numbers are irrelevent, I want to make the algorythme)</div><div><br></div><div>I have tryed many things, with trigonometry, learned about Gimbal lock, read everything I could about euler angles, etc ... result is it&#39;s not working right.</div>

<div><br></div><div>I attached an exemple patch. The math inside are based on the help I got on a math forum. It quite look like the thing I was trying to do but it doesn&quot;t work better :)</div><div><br></div><div>Anybody ? Any idea?</div>

<div><br></div><div>cheers</div><div><br></div><div>PS : I try to do that to calculate joint orientations of kinect skeleton. and even though there might be other solutions(wich I be glad to know about), now it&#39;s a personal affair, I WANT TO DO IT !!! 2 WEEKS I&#39;VE BEEN TRYING !! AAARGH</div>