Tetrahedral carbon
We note that carbon is tetravalent in all cases, ie forms four bonds to other atoms.
The carbons are not flat. The Lewis structures represent carbon at the centre of a tetrahedron, eg methane:
Bonding electron pairs repel one another least this way.