So I have a class. In this class I have a timer which repeats every 100 millisecs. I want to check If 2 objects collidate. Everthing is fine with rectangles and circles but custom images won't work or do only collide with one rectangle on the screen which is very weird.
private boolean checkCollision(GameObject ob1, GameObject ob2) {
if(ob1.getBounds().intersects(ob2.getBounds())) return true;
return false;
}