Rotate an object based on normal vector of a hit face

I’ll try to keep this as simple as possible. I have a shape any shape in this case it’s a cube. I Cast a ray to hit one of the faces of the cube. Icast another to hit another face of another cube and I store both vectors information. I want to rotate the first hit faces OBJECT so that the hit face is the exact inverse of the second objects hit face to essentially be able to attach them face to face.

Howwwwwwwww?

Thank you in advance

I tried just setting the linetrace vector of one cube to be the opposite on another cube and it seems to be fine, although I didn’t try making the whole system that you described, so I hope this can still be of some help to you.
96054-96055-

I’ll give this idea a shot wig thanks, I’ll let you know how it goes

sorry wig i tried it but that did not work. Any other suggestions?

anyone have any ideas?