plane.z = 0;
//we need to rotate the plane so that it matches the one on the draw view
plane.normal.rotateY(GLOBAL.rotateModelsY);
plane.normal.rotateX(GLOBAL.rotateModelsX);
plane.addSelf(plane.normal.scale(planeIn.z));
//mouseRayDir.rotateY(GLOBAL.rotateModelsY);
//mouseRayDir.rotateX(GLOBAL.rotateModelsX);
mouseRayPos.subSelf(focusCentre);
ray = new Ray3D(mouseRayPos, mouseRayDir); // this should be the world position of the mouse poiner on the 0,0,-1 plane