When water freezes, this bonding occurs on repeat, ultimately forming a hexagonal structure due to the angle between hydrogens and oxygen within each molecule.
The pi bonds prevent the triple bonds from rotating here as well, but triple bonded carbons can only bond to one other atom, so even if it could rotate, nothing would change.
They form from overlapping electron clouds or shells, flowing around the nuclei of bonded atoms. If you really get down there and understand what they look like, they're like lumpy, clumpy globs of probable electron locations.