on, collision, i want one of two objects to be removed. I dont know where to properly start


1 2 3 4 5 6 | Shot shot = getOneIntersectingObject(Shot. class ); if (shot != null ) { getWorld().removeObject(shot); timesShot++; if (timesShot == maxShotCount) getWorld().removeObject( this ); } |