I am trying to make a game where if 2 bullets crash they will both get deleted. However this is not the case with my code. Sometimes one gets deleted and sometimes the other one does. How can I fix this?
and on the other one
if (isTouching(Bullet2.class))
{
getWorld().removeObject(this);
} if (isTouching(Bullet1.class))
{
getWorld().removeObject(this);
}
