When I fire an arrow (red arrows) into another other object (blue cubes) it checks the object’s tag via raycast and then parents itself to that object if the tag matches (left cube). The problem is that after the parenting, the object treats the arrows as a part of itself (even though the arrows are tagged differently), and so if an arrow hits another parented arrow they keep sticking together really stupidly in an ever growing row (middle cube).
Is there a way I can ignore the parented arrows when doing the raycast so that the new arrows are only parented to the object (blue cube) and not to the arrows already parented (right cube)?