Struct HexCellMetrics
Metrics of a cell in the hex terrain.
Contains information about the cell's biome, position, coordinate, byte height (from heightmap), height in meters, chunk index, chunk coord, etc.
Assembly: fwt.hexterrains.dll
Syntax
public struct HexCellMetrics
Fields
Biome
Biome value (byte) of the cell
Declaration
Field Value
CellCoord_Global
Coordinate of cell on terrain
Declaration
public int2 CellCoord_Global
Field Value
CellCoord_Local
Coordinate local to chunk
Declaration
public int2 CellCoord_Local
Field Value
CellHeight_Points
Height of the cell in bytes (from heightmap)
Declaration
public byte CellHeight_Points
Field Value
CellHeight_Units
Height of the cell in meters
Declaration
public float CellHeight_Units
Field Value
CellIndex
Declaration
Field Value
Cell center matrix with origin at terrain 0:0:0 (not chunk)
Declaration
public Matrix4x4 CellTransform_Global
Field Value
| Type |
Description |
| Matrix4x4 |
|
Cell center matrix with origin at chunk 0:0:0 (not terrain)
Declaration
public Matrix4x4 CellTransform_Local
Field Value
| Type |
Description |
| Matrix4x4 |
|
CenterPoint_Global
Position2D (no height) of center point of the cell relative to the terrain origin
Declaration
public float2 CenterPoint_Global
Field Value
CenterPoint_Local
Position2D (no height) of center point of the cell relative to the chunk origin
Declaration
public float2 CenterPoint_Local
Field Value
ChunkCoord
Coordinate of the chunk of this cell in the chunks grid
Declaration
Field Value
ChunkIndex
Value of the chunk this cell belongs to
Declaration
Field Value
Properties
CenterPosition_Global
Declaration
public float3 CenterPosition_Global { get; }
Property Value
CenterPosition_Local
Declaration
public float3 CenterPosition_Local { get; }
Property Value
Extension Methods