Fashionable vehicles use helical gears and synchromesh units in the gearboxes, that synchronize the rotation of gears which might be going to mesh. This gets rid of clashing with the gears and would make equipment shifting much easier. Spur and helical gears are used in the sliding mesh gearbox https://gearbox74195.ampblogs.com/the-basic-principles-of-gearbox-70493697