Present day vehicles use helical gears and synchromesh devices inside the gearboxes, that synchronize the rotation of gears that happen to be about to mesh. This eradicates clashing with the gears and helps make gear shifting a lot easier. Examples of this sort of transmissions are used in helicopters https://gearbox42974.theisblog.com/34012699/considerations-to-know-about-gearbox