added attach_to functionality for a light/shadow