Untested but should (fingers crossed) work:
You may want to add a couple of things to this, for example ensure that we hit ground only; you do not want to accidentally hit someone’s face with this - it just extracts the texture from whatever it hits and puts it on the target mesh.
