It's pretty much random.
It's pretty much random. But that's a good thing, because it allows for creativity.
The main driving factor here is erosion. The coastal details are random, but some major features depend on the type of land at the coast. Here is a collection of major features for a coast and a bit about how they are formed:
- First we can discuss a collection of major features for a coast
and a bit about how they are formed.
- Then a couple notes on how to get the big features right.
- Finally some sources for generating your coastlines automagically.
The features:
Roughly from left to right:
Getting some clues:
There are some things you can get a good guess atfeatures/properties that will aid in the selection of features. For instance:
- An offshore reef will significantly reduce the wave strength and
you'll get some fairly lackluster beaches. They'll mostly be sediment build up and will likely result in shallow beaches (look at beaches on the Australian mainland inside of the great barrier reef for good examples).
- If there are high waves commonly there will be more erosion and the
coastline will more likely have been pushed landward to some rocky
materials.
Reefs and offshore features
An offshore reef or island will significantly reduce the wave strength and
you'll get some fairly lackluster beaches. They'll mostly be sediment build up and will likely result in shallow beaches (look at beaches on the Australian mainland inside of the great barrier reef for good examples).
Note:Winds and hemispheres
IIf there are high waves there will be more erosion and the
coastline will more likely have been pushed landward until it hit some rocky
materials to slow the encroachment. The high waves are caused by high winds. So, these rocky coasts are characteristic of the west coasts in the northern hemisphere and the east coasts in the southern hemisphere. This is not a rule though.
Latitudes
If the coastline is filling an area forged by a recent ice age or glacial activity, then large cliffs may be more prolific. The glaciers will have carved out deep valleys, leaving bedrock as the headland which resists rapid erosion. See the fjords in near-arctic regions for examples.
Automagical generation:
Coastlines can be passibly simulated using fractal landscape generation.
I found this article, which describes how the author algorithmically produces a coastline fractal by adding a random component:
Also this one doing a similar process:
These are both using a fractal landscape type of generation.