I want to rotate an object around a point using a matrix pc.Mat4:
mat.translate(-x, -y, -z);
mat.rotate(rx, ry, rz);
mat.translate(x, y, z);
But the class Mat4
does not have the translate
method.
Who will tell what to do?
Thanks.
I want to rotate an object around a point using a matrix pc.Mat4:
mat.translate(-x, -y, -z);
mat.rotate(rx, ry, rz);
mat.translate(x, y, z);
But the class Mat4
does not have the translate
method.
Who will tell what to do?
Thanks.