What a BlockMap takes: its block set, its rows, where it stands, the
collision settings its colliders take, and its name.
| Type Parameter |
Default type |
Name extends string |
string |
| Property |
Type |
Default value |
Description |
blockSet |
BlockSet<Name> |
undefined |
- |
cells |
readonly string[] |
undefined |
One string a row, north to south, one legend character a cell, a dot for a void cell. |
collisionLayer? |
CollisionLayerHandle |
undefined |
The layer this collider stands in, over its body’s. |
collisionMask? |
CollisionMask |
undefined |
The layers this collider meets, over its body’s. |
heights |
readonly readonly number[][] |
undefined |
Each cell’s height in whole steps of the set’s cellSize[1]. |
legend |
BlockLegend<Name> |
undefined |
- |
material? |
MaterialOptions |
undefined |
- |
name? |
string |
"BlockMap" |
What findBlockMap finds it by, one name to a map in a scene. |
position? |
Position |
[0, 0, 0] |
Where cell [0, 0]’s north-west corner stands, as a tile layer’s. |
sea? |
number |
undefined |
The sea’s height in metres, in the map’s own axes. Left out, a water cell’s surface stands 0.35 m over its bed. |