In my game there spawns asteroids in the top of the screen and then move though the bottom and then they reach the bottom they should be removed, but with the this code
they dont spawn because they already in the start they are at the edge
private void checkworldsedge()
{
if(atWorldEdge())
{
getWorld().removeObject(this);
}
}