public void update(){
  for (int i=0; i < mBodiesToBeRemoved.size(); i++) {
    mWorld.destroyBody(mBodiesToBeRemoved.get(i));
  }
  mBodiesToBeRemoved.clear();
  mWorld.step(FRAME_RATE,10,10);
  mWorld.clearForces();
}

public void update ( ) { for ( int i = 0 ; i < mBodiesToBeRemoved . size ( ) ; i ++ ) { mWorld . destroyBody ( mBodiesToBeRemoved . get ( i ) ) ; } mBodiesToBeRemoved . clear ( ) ; mWorld . step ( FRAME_RATE , 10 , 10 ) ; mWorld . clearForces ( ) ; }
updates the physics world by removing all pending bodies .
