Synchronizers
Manual transmissions in modern passenger cars use synchronizers to eliminate the need for double-clutching. A synchro's purpose is to allow the collar and the gear to make frictional contact before the dog teeth make contact. This lets the collar and the gear synchronize their speeds before the teeth need to engage, like this:
The cone on the blue gear fits into the cone-shaped area in the collar, and friction between the cone and the collar synchronize the collar and the gear. The outer portion of the collar then slides so that the dog teeth can engage the gear.
Every manufacturer implements transmissions and synchros in different ways, but this is the general idea.