HeightMap
Up and coming: shot check knows this datatype and its members today, and programs run it once the native runtime lands.
comingDatatypes
Up and coming
A map layer's heights, one byte a pixel, that you can sample at any stud position.
MapLayerExport:GetHeightMapAsync returns one. Each pixel holds one byte spread over MinHeight to MaxHeight, and Sample(stud) reads the height at a stud position.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Size | Vector2 | The map's size in pixels. | |
| StudCorner | Vector2 | ||
| StudSize | Vector2 | ||
| MinHeight | number | ||
| MaxHeight | number |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| Sample | (stud: Vector2) | number | Reads the height at a stud position; each pixel is one byte over MinHeight to MaxHeight. |
| Encode | () | buffer |
