So i have an object which is getting rotated then translated and rotated again. I am storing a matrix of these translations as an object member. Now when i come to object picking i need to know the 3D world coords of this object.
Currently i have been able to get the position of the object like so
coords[1] = finalMatrix[13];
coords[2] = finalMatrix[14];
coords[0] = finalMatrix[12];
This is giving me the correct positions of the objects but i want to take the rotations into account as well.
Any help would be great...