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

NameTypeDefaultDescription
SizeVector2The map's size in pixels.
StudCornerVector2
StudSizeVector2
MinHeightnumber
MaxHeightnumber

Methods

NameArgumentsReturnsDescription
Sample(stud: Vector2)numberReads the height at a stud position; each pixel is one byte over MinHeight to MaxHeight.
Encode()buffer