Ok, I don't know how to explain the problem, look at the project I attached. The rotation matrix seems to scew up when turning around X or Y while Z rotation works fine... Please help!