The shape of the hair depends on hair follicles. And the follicle shape is partly determined by genes. You have straight hair when you have perfectly round follicles.