I have a PMatrix3D that is generated using motion tracking. I am using this to rotate a 3D object. When I apply the matrix as generated, the x and y axises rotate inverse to the direction that I need, but on the z axis, it rotates the correct way. I can invert the matrix but then the x and y work properly, but now the z is inverted. I am new to PMatrix and have no idea how to do this...any suggestions?