Modern day automobiles use helical gears and synchromesh units from the gearboxes, that synchronize the rotation of gears that are going to mesh. This gets rid of clashing on the gears and can make gear shifting easier. Several early versions of such transmissions were being semi-computerized in operation, like https://gearbox28123.gynoblog.com/32980457/the-basic-principles-of-gearbox