That's right, I didn't keep track of the additions. My square doesn't disappear. However, there is no visible rotation. The vectors / axis before rotation: vec(0,0,1) right(-1,0,0) up(0,1,0)
And after: vec(0,-0.000698,-0.069753) right(1,0,0) up(0,1,0)
Okay, it works for the vector (1,0,0) with both rotX and rotZ but if the vector is (0,0,1) it works for neither. Also, it rotates 90 degrees. What if you want a smaller angle?
It's working, the problem was the matrix syntax. Why are the matrices different from these? : https://fr.wikipedia.org/wiki/Matrice_de_rotation#Les_matrices_de_base How can we rotate in the opposite direction? For a "diagonal" rotation (like in the video), I find the effect strange. Is it normal? If not, how can we fix it?