0

I have been searching the web for days and i cant get anything.

I want to remove a circle when hit by the actor.

I have a clustered set of circles, and a circle that moves around randomly, so i want when a collision occurs a circle from the clustered set to be removed.

public void checkCollision() { 
   distance = (int) Math.sqrt(
                              (circlex-bal.x)*(circlex-bal.x)
                             +(circley-bal.y)*(circley-bal.y)
                    ); 
   if(distance <= radius+bal.ballRadius) { 
      //want to destroy the clustered set of ball 
   }
}
4

0 回答 0