I have a function that detects when the objects collide but how do I delete one of them?
private function fruitToFloorCollision(collision:InteractionCallback):void
{
// TODO Auto Generated method stub
trace('fruit hits floor');
}
when I trace out the collision
Cb:BEGIN:(dynamic)#11/(static)#1 : [CollisionArbiter(Polygon#2|Circle#12)[SD]<-ACCEPT] : listener: InteractionListener{BEGIN#COLLISION::@{[CbType#5] excluding []}:@{[CbType#6] excluding []}} precedence=0
As far as i know, Considering you have 2 Objects fruit and floor, interactionListener added in that order.