Terrain

extends BasePart

Class fields

FieldXML typeValue
NamestringTerrain
summarystringObject representing a high performance bounded grid of static 4x4 parts
Browsablebooltrue
ExplorerOrderstring0
ExplorerImageIndexstring65

Properties

11
ClusterGrid
string
FieldXML typeValue
NamestringClusterGrid
ClusterGridV2
string
FieldXML typeValue
NamestringClusterGridV2
ClusterGridV3
BinaryString
FieldXML typeValue
NamestringClusterGridV3
IsSmooth
bool
FieldXML typeValue
NamestringIsSmooth
MaxExtents
Region3int16
FieldXML typeValue
NamestringMaxExtents
SmoothGrid
BinaryString
FieldXML typeValue
NamestringSmoothGrid
SmoothReplicate
int
FieldXML typeValue
NamestringSmoothReplicate
WaterColor
Color3
FieldXML typeValue
NamestringWaterColor
WaterTransparency
float
FieldXML typeValue
NamestringWaterTransparency
WaterWaveSize
float
FieldXML typeValue
NamestringWaterWaveSize
WaterWaveSpeed
float
FieldXML typeValue
NamestringWaterWaveSpeed

Functions

22
AutowedgeCell
(x: int, y: int, z: int) → bool
FieldXML typeValue
NamestringAutowedgeCell
AutowedgeCells
(region: Region3int16) → void
FieldXML typeValue
NamestringAutowedgeCells
CellCenterToWorld
(x: int, y: int, z: int) → Vector3
FieldXML typeValue
NamestringCellCenterToWorld
CellCornerToWorld
(x: int, y: int, z: int) → Vector3
FieldXML typeValue
NamestringCellCornerToWorld
Clear
() → void
FieldXML typeValue
NamestringClear
ConvertToSmooth
() → void
FieldXML typeValue
NamestringConvertToSmooth
CopyRegion
(region: Region3int16) → Instance
FieldXML typeValue
NamestringCopyRegion
CountCells
() → int
FieldXML typeValue
NamestringCountCells
FillBall
(center: Vector3, radius: float, material: Material) → void
FieldXML typeValue
NamestringFillBall
FillBlock
(cframe: CoordinateFrame, size: Vector3, material: Material) → void
FieldXML typeValue
NamestringFillBlock
FillRegion
(region: Region3, resolution: float, material: Material) → void
FieldXML typeValue
NamestringFillRegion
GetCell
(x: int, y: int, z: int) → Tuple
FieldXML typeValue
NamestringGetCell
summarystringReturns CellMaterial, CellBlock, CellOrientation
GetWaterCell
(x: int, y: int, z: int) → Tuple
FieldXML typeValue
NamestringGetWaterCell
summarystringReturns hasAnyWater, WaterForce, WaterDirection
PasteRegion
(region: Instance, corner: Vector3int16, pasteEmptyCells: bool) → void
FieldXML typeValue
NamestringPasteRegion
ReadVoxels
(region: Region3, resolution: float) → Tuple
FieldXML typeValue
NamestringReadVoxels
SetCell
(x: int, y: int, z: int, material: CellMaterial, block: CellBlock, orientation: CellOrientation) → void
FieldXML typeValue
NamestringSetCell
SetCells
(region: Region3int16, material: CellMaterial, block: CellBlock, orientation: CellOrientation) → void
FieldXML typeValue
NamestringSetCells
SetWaterCell
(x: int, y: int, z: int, force: WaterForce, direction: WaterDirection) → void
FieldXML typeValue
NamestringSetWaterCell
WorldToCell
(position: Vector3) → Vector3
FieldXML typeValue
NamestringWorldToCell
WorldToCellPreferEmpty
(position: Vector3) → Vector3
FieldXML typeValue
NamestringWorldToCellPreferEmpty
WorldToCellPreferSolid
(position: Vector3) → Vector3
FieldXML typeValue
NamestringWorldToCellPreferSolid
WriteVoxels
(region: Region3, resolution: float, materials: Array, occupancy: Array) → void
FieldXML typeValue
NamestringWriteVoxels