So, I have an object that rotates, then translates and rotates again. I save the matrix of these translations as a member of the object. Now, when I come to the choice of an object, I need to know the three-dimensional world coordinates of this object.
Currently, I managed to get the position of the object so
coords[0] = finalMatrix[12];
coords[1] = finalMatrix[13];
coords[2] = finalMatrix[14];
This gives me the correct positions of the objects, but I also want to take them into account.
Any help would be great ...
source share