How can I connect (for example) car trailer to car?

I have a car in my scene and a car trailer. Can you please help me how to connect both of them? I tried some ideas but they didn’t worked…

I would say put a collider object on the back of the car, and a collider object on the hitch of the trailer, so when the car backs up to the trailer, you can run a collision event to child the trailer to the hitch.