Hi, I've been programming a game involving a helicopter saving people, but I've run into a problem.
As you can see in the picture, the helicopter crashes when it looks like it doesn't touch anything, but it touches the transparent background of the picture.
In the helicopter class I've been using the getOneIntersectionObject(name.class) to detect collision:
Is there a better way of detecting collision? I've already tried cutting away the transparent background in Photoshop, but that is sadly not possible.
I thought of a very time consuming solution, which is no longer using the pictures as the check for Intersection, but creating a new Actor with small squares, which are placed behind the pictures and are used to detect collision. But this is hopefully not necessary, since I don't have that much time.
Thanks in advance!


Actor Drooggebied = getOneIntersectingObject(Drooggebied.class); if (Drooggebied != null){ super.exploded = true; }