- changed currentPosition.x += facX;
          currentPosition.y += facY;

          to

          currentPosition.z += facX;
          currentPosition.x += facY;