FANDOM


Object representing a high performance bounded grid of static 4x4 parts. This class cannot be instantiated.

Properties Edit

Pubfield bool IsSmooth [readonly] [deprecated] Edit

Returns whether or not this game has smooth terrain. Flat terrain was removed in January 2017, so this is always true.

Pubfield Region3int16 MaxExtents [readonly] Edit

Pubfield Color3 WaterColor Edit

The color of the Water material.

Pubfield float WaterReflectance Edit

The reflectance of the Water material.

Pubfield float WaterTransparency Edit

The transparency of the Water material.

Pubfield float WaterWaveSize Edit

The maximum size Water waves can be.

Pubfield float WaterWaveSpeed Edit

The speed of the Water material.

Methods Edit

Pubmethod bool AutowedgeCell(int x, int y, int z) [deprecated] Edit

Pubmethod void AutowedgeCells(Region3int16 region) [deprecated] Edit

Pubmethod Vector3 CellCenterToWorld(int x, int y, int z) Edit

Pubmethod Vector3 CellCornerToWorld(int x, int y, int z) Edit

Pubmethod void Clear() Edit

Removes all smooth terrain from the game.

Protmethod void ConvertToSmooth() [deprecated] [PluginSecurity] Edit

Converts the game from flat to smooth terrain.

Pubmethod Instance CopyRegion(Region3int16 region) Edit

Copies the given region and returns a ExplorerImageIndex 65TerrainRegion.

Pubmethod int CountCells() Edit

Counts the amount of terrain cells.

Pubmethod void FillBall(Vector3 center, float radius, Material material) Edit

Creates a ball of terrain that reaches out from the given center point.

Pubmethod void FillBlock(CoordinateFrame cframe, Vector3 size, Material material) Edit

Creates a block of terrain from the given CoordinateFrame and goes out by size.

Pubmethod void FillRegion(Region3 region, float resolution, Material material) Edit

Fills a region with the given material.

Pubmethod Tuple GetCell(int x, int y, int z) [deprecated] Edit

Returns CellMaterial, CellBlock, CellOrientation

Pubmethod Tuple GetWaterCell(int x, int y, int z) [deprecated] Edit

Returns hasAnyWater, WaterForce, WaterDirection

Pubmethod Color3 GetMaterialColor(Material material) Edit

Retrives the color of a material previously set with SetMaterialColor

Pubmethod void PasteRegion(Instance region, Vector3int16 corner, bool pasteEmptyCells) Edit

Pastes the given ExplorerImageIndex 65TerrainRegion, with the corner being a corner.

Pubmethod Tuple ReadVoxels(Region3 region, float resolution) Edit

Pubmethod void SetMaterialColor(Material material, Color3 value) Edit

Pubmethod void SetCell(int x, int y, int z, CellMaterial material, CellBlock block, CellOrientation orientation) [deprecated] Edit

Pubmethod void SetCells(Region3int16 region, CellMaterial material, CellBlock block, CellOrientation orientation) [deprecated] Edit

Pubmethod void SetWaterCell(int x, int y, int z, WaterForce force, WaterDirection direction) [deprecated] Edit

Pubmethod Vector3 WorldToCell(Vector3 position) Edit

Pubmethod Vector3 WorldToCellPreferEmpty(Vector3 position) Edit

Pubmethod Vector3 WorldToCellPreferSolid(Vector3 position) Edit

Pubmethod void WriteVoxels(Region3 region, float resolution, Array materials, Array occupancy) Edit