Terrain · function
terrainFromHeightLayer
The terrain a layer describes: the same class every consumer already queries, built from the decoded samples.
Explained in Terrain.
function terrainFromHeightLayer(layer: TerrainHeightLayer): Terrainimport { terrainFromHeightLayer } from '@driftengine/terrain';Parameters
| Parameter | Type | Description |
|---|---|---|
layer | TerrainHeightLayer |
In depth
This is the whole answer to "collision and rendering read the same height". They read the same object, because the layer produces exactly one.