Skip to main content

Module tectonics

Module tectonics 

Source
Expand description

Tectonic plate simulation — rigid body plates on a 2D grid.

Plates are generated via Voronoi partitioning, then drift according to velocity vectors. Collisions at plate boundaries generate mountains (convergent), rifts (divergent), or transform faults (shear).

Structs§

Plate
A tectonic plate.
PlateMap
The plate assignment map (which plate each cell belongs to).

Enums§

BoundaryType
Boundary interaction type.

Functions§

generate
Generate tectonic plates and base heightmap.