ive run into a problem where i am trying to remove the projectile and object if the intersect however if the object hits the edges of the world it crashes. Any ideas? Scenario
public void removeEnemies() { Actor enemy = getOneIntersectingObject(enemy.class); if(enemy != null) { getWorld().removeObject(enemy); getWorld().removeObject(this); } }