Hey guys,
I have a problem with this method. I created a little scenario about the peanuts and Snoopy can shoot little Woodstocks and if one Woodstock hits a Red Baron the Red Baron dies. but in my case if I shoot all Red barons disappear instantly without getting hit. I dont know why this happens. this is in my RedBaron class.
thanks for your help, if you need anything just ask.
public void checkCollision()
{
Actor meinWoodstock;
meinWoodstock = this.getOneIntersectingObject(Woodstock.class);
if(meinWoodstock != null)
{
this.getWorld().removeObject(this);
}
}
