I want to make a shadow on a actor elongate when it moves away from another actor (and vise versa), but I don't know what could test if it is moving away.
I've got this code, but it doesn't tell me if the actor is getting further away:
I am thinking the code would be like "if(actors distance to object is decreasing){ elongation += 1; }
Any ideas?
List<Light>objects = getObjectsInRange(600, Light.class);

