public void direction() {
        if (untouchable > 0) {
            Dolphin dolphin = (Dolphin) getWorld().getObjects(Dolphin.class).get(0);
            if (dolphin.direction == 0) {
                setRotation(0);
            }
            else if (dolphin.direction == 1) {
                setRotation(-45);
            }
            else if (dolphin.direction == 2) {
                setRotation(-90);
            }
            else if (dolphin.direction == 3) {
                setRotation(-135);
            }
            else if (dolphin.direction == 4) {
                setRotation(-180);
            }
            else if (dolphin.direction == 5) {
                setRotation(-225);
            }
            else if (dolphin.direction == 6) {
                setRotation(-270);
            }
            else if (dolphin.direction == 7) {
                setRotation(-315);
            }
        }
    }