If i want the worms to move only when the objects come into a certain radius, how could i make this a statement using getObjectsInRange() ?
int radius = 50; // adjust to suit
if (!getObjectsInRange(radius, null).isEmpty())
{
// code to move worm
}
// or: if (getObjectsInRange(radius, null).size() != 0)...