public static Matrix3f calcRotationMatrix(float x, float y, float z) {
Matrix3f m3f = new Matrix3f();
m3f.loadIdentity();
m3f.fromAngleAxis(x, new Vector3f(1f, 0f, 0f));
Matrix3f rotY = new Matrix3f();
rotY.loadIdentity();
rotY.fromAngleAxis(y, new Vector3f(0f, 1f, 0f));
Matrix3f rotZ = new Matrix3f();
rotZ.loadIdentity();
rotZ.fromAngleAxis(z, new Vector3f(0f, 0f, 1f));