private void faceCam(Vector3f direction)
    {
       float cameraROT = (float)Math.toDegrees(Math.atan(direction.getZ() / direction.getX()));

        if(direction.getX() < 0)
        {
            cameraROT += 180;
        }

       transform.getRotation().setY(cameraROT + 90);
    }