A covariant Feynman-Kac formula for unitary bundles over euclidean space