add nearest object to <entity>