Calculate the rotation with the help of position

I’m trying to figure out a way to get the rotational values(x,y,z) with the help of positional values.

I have an empty entity which has two children A and B, positioned at P1 and P2 resp. When i rotate the empty entity in say R1(x,y,z) degrees, the position of A will be same as before (P1) but position of B changes to P3. How can i calculate R1(x,y,z) provided that i know the value of P3,P2 and P1.

Hi @Afeloth,

If I understand correctly, I think you can’t! Unless there is a mathematical relation between the 3 points to utilize trigonometry or something similar.

Updating the position of the children doesn’t really have any effect on the parent.