I have a class that changes image. The class is the turtle. So i want myy frog to touch one of the images and die. How do i do that?
Turtle turtle = (Turtle) getOneIntersectingObject(Turtle.class); if (turtle != null && turtle.hasBadImage()) getWorld().removeObject(this);