Roblox Wiki
Roblox Wiki
m (Bot Edit: Removing count of members.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{Missing API Documentation}}
{{Infobox class
+
{{Infobox class}}
| explorer order = 0
 
| tags = notCreatable}}
 
   
 
Object representing a high performance bounded grid of static 4x4 parts. This class cannot be [[instantiated]].
 
Object representing a high performance bounded grid of static 4x4 parts. This class cannot be [[instantiated]].
   
  +
{{Member list}}
== Properties ==
 
   
  +
== External links ==
   
  +
* {{DevHub class link}}
 
  +
* {{Roblox API Reference class link}}
=== {{property|readonly|name=IsSmooth|type=bool|deprecated}} ===
 
 
Returns whether or not this game has smooth terrain. Flat terrain was removed in January 2017, so this is always true.
 
 
=== {{property|readonly|name=MaxExtents|type=Region3int16}} ===
 
 
=== {{property|name=WaterColor|type=Color3}} ===
 
 
The color of the [[Water]] material.
 
 
=== {{property|name=WaterReflectance|type=float}} ===
 
 
The reflectance of the [[Water]] material.
 
 
=== {{property|name=WaterTransparency|type=float}} ===
 
 
The transparency of the [[Water]] material.
 
 
=== {{property|name=WaterWaveSize|type=float}} ===
 
 
The maximum size [[Water]] waves can be.
 
 
=== {{property|name=WaterWaveSpeed|type=float}} ===
 
 
The speed of the [[Water]] material.
 
 
== Methods ==
 
 
 
 
=== {{method|deprecated|bool|name=AutowedgeCell|int x|int y|int z}} ===
 
 
=== {{method|deprecated|void|name=AutowedgeCells|Region3int16 region}} ===
 
 
=== {{method|Vector3|name=CellCenterToWorld|int x|int y|int z}} ===
 
 
=== {{method|Vector3|name=CellCornerToWorld|int x|int y|int z}} ===
 
 
=== {{method|void|name=Clear}} ===
 
 
Removes all smooth terrain from the game.
 
 
=== {{method|PluginSecurity|void|name=ConvertToSmooth|deprecated}} ===
 
 
Converts the game from flat to smooth terrain.
 
 
=== {{method|Instance|name=CopyRegion|Region3int16 region}} ===
 
 
Copies the given region and returns a {{Class link|TerrainRegion}}.
 
 
=== {{method|int|name=CountCells}} ===
 
 
Counts the amount of terrain cells.
 
 
=== {{method|void|name=FillBall|Vector3 center|float radius|Material material}} ===
 
 
Creates a ball of terrain that reaches out from the given center point.
 
 
=== {{method|void|name=FillBlock|CoordinateFrame cframe|Vector3 size|Material material}} ===
 
 
Creates a block of terrain from the given CoordinateFrame and goes out by size.
 
 
=== {{method|void|name=FillRegion|Region3 region|float resolution|Material material}} ===
 
 
Fills a region with the given material.
 
 
=== {{method|deprecated|Tuple|name=GetCell|int x|int y|int z}} ===
 
 
Returns CellMaterial, CellBlock, CellOrientation
 
 
=== {{method|deprecated|Tuple|name=GetWaterCell|int x|int y|int z}} ===
 
 
Returns hasAnyWater, WaterForce, WaterDirection
 
 
=== {{method|void|name=PasteRegion|Instance region|Vector3int16 corner|bool pasteEmptyCells}} ===
 
 
Pastes the given {{Class link|TerrainRegion}}, with the corner being a corner.
 
 
=== {{method|Tuple|name=ReadVoxels|Region3 region|float resolution}} ===
 
 
=== {{method|deprecated|void|name=SetCell|int x|int y|int z|CellMaterial material|CellBlock block|CellOrientation orientation}} ===
 
 
=== {{method|deprecated|void|name=SetCells|Region3int16 region|CellMaterial material|CellBlock block|CellOrientation orientation}} ===
 
 
=== {{method|deprecated|void|name=SetWaterCell|int x|int y|int z|WaterForce force|WaterDirection direction}} ===
 
 
 
 
=== {{method|Vector3|name=WorldToCell|Vector3 position}} ===
 
 
=== {{method|Vector3|name=WorldToCellPreferEmpty|Vector3 position}} ===
 
 
=== {{method|Vector3|name=WorldToCellPreferSolid|Vector3 position}} ===
 
 
=== {{method|void|name=WriteVoxels|Region3 region|float resolution|Array materials|Array occupancy}} ===
 

Latest revision as of 03:02, 23 June 2023

Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.

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

Properties

Decoration: bool

  • Not scriptableThis member cannot be accessed by Lua code.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/Decoration.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

GrassLength: float

  • Not scriptableThis member cannot be accessed by Lua code.
  • Not browsableThis member is not visible in documentation for end-users.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/GrassLength.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

IsSmooth: bool

  • Read-onlyThis property is capable of being read but not written.
  • Not replicatedThis member is not replicated across the network boundary.
  • DeprecatedThis member will be phased out and should be avoided while it is still available.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/IsSmooth.
  • Category: Data.
  • Serialization: cannot load or save.
  • Thread safety: read safe

LastUsedModificationMethod: TerrainAcquisitionMethod

  • HiddenThis property is not shown in the object browser and properties window.
  • Not replicatedThis member is not replicated across the network boundary.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/LastUsedModificationMethod.
  • Category: Data.
  • Read security: RobloxScriptSecurity.
  • Write security: RobloxScriptSecurity.
  • Serialization: cannot load or save.
  • Thread safety: read safe

MaterialColors: BinaryString

  • Not scriptableThis member cannot be accessed by Lua code.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/MaterialColors.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

MaxExtents: Region3int16

  • Read-onlyThis property is capable of being read but not written.
  • Not replicatedThis member is not replicated across the network boundary.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/MaxExtents.
  • Category: Data.
  • Serialization: cannot load or save.
  • Thread safety: read safe

ShorelinesUpgraded: bool

  • HiddenThis property is not shown in the object browser and properties window.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/ShorelinesUpgraded.
  • Category: Appearance.
  • Read security: RobloxScriptSecurity.
  • Write security: RobloxScriptSecurity.
  • Serialization: can save and load.
  • Thread safety: read safe

SmoothVoxelsUpgraded: bool

  • HiddenThis property is not shown in the object browser and properties window.
This class member is missing documentation. Create or add to its subpage at Class:Terrain/SmoothVoxelsUpgraded.
  • Category: Appearance.
  • Read security: RobloxScriptSecurity.
  • Write security: RobloxScriptSecurity.
  • Serialization: can save and load.
  • Thread safety: read safe

WaterColor: Color3

This class member is missing documentation. Create or add to its subpage at Class:Terrain/WaterColor.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

WaterReflectance: float

This class member is missing documentation. Create or add to its subpage at Class:Terrain/WaterReflectance.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

WaterTransparency: float

This class member is missing documentation. Create or add to its subpage at Class:Terrain/WaterTransparency.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

WaterWaveSize: float

This class member is missing documentation. Create or add to its subpage at Class:Terrain/WaterWaveSize.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

WaterWaveSpeed: float

This class member is missing documentation. Create or add to its subpage at Class:Terrain/WaterWaveSpeed.
  • Category: Appearance.
  • Serialization: can save and load.
  • Thread safety: read safe

Methods

AutowedgeCell(x: int, y: int, z: int): bool

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
xint
yint
zint
  • Thread safety: unsafe

AutowedgeCells(region: Region3int16): null

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
regionRegion3int16
  • Thread safety: unsafe

CanShorelinesBeUpgraded(): bool

This class member is missing documentation. Create or add to its subpage at Class:Terrain/CanShorelinesBeUpgraded.
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

CanSmoothVoxelsBeUpgraded(): bool

This class member is missing documentation. Create or add to its subpage at Class:Terrain/CanSmoothVoxelsBeUpgraded.
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

CellCenterToWorld(x: int, y: int, z: int): Vector3

Parameters
NameType
xint
yint
zint
  • Thread safety: unsafe

CellCornerToWorld(x: int, y: int, z: int): Vector3

Parameters
NameType
xint
yint
zint
  • Thread safety: unsafe

Clear(): null

Clears all existing terrain voxels.

  • Thread safety: unsafe

ConvertToSmooth(): null

  • DeprecatedThis member will be phased out and should be avoided while it is still available.

Was previously used to convert legacy terrain to smooth terrain technology. This method no longer does anything when called because legacy terrain has been removed.

  • Security: PluginSecurity.
  • Thread safety: unsafe

CopyRegion(region: Region3int16): TerrainRegion

Parameters
NameType
regionRegion3int16
  • Thread safety: unsafe

CountCells(): int

This class member is missing documentation. Create or add to its subpage at Class:Terrain/CountCells.
  • Thread safety: unsafe

FillBall(center: Vector3, radius: float, material: Material): null

Parameters
NameType
centerVector3
radiusfloat
materialMaterial
  • Thread safety: unsafe

FillBlock(cframe: CFrame, size: Vector3, material: Material): null

Parameters
NameType
cframeCFrame
sizeVector3
materialMaterial
  • Thread safety: unsafe

FillCylinder(cframe: CFrame, height: float, radius: float, material: Material): null

Parameters
NameType
cframeCFrame
heightfloat
radiusfloat
materialMaterial
  • Thread safety: unsafe

FillRegion(region: Region3, resolution: float, material: Material): null

Parameters
NameType
regionRegion3
resolutionfloat
materialMaterial
  • Thread safety: unsafe

FillWedge(cframe: CFrame, size: Vector3, material: Material): null

Parameters
NameType
cframeCFrame
sizeVector3
materialMaterial
  • Thread safety: unsafe

GetCell(x: int, y: int, z: int): Tuple

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
xint
yint
zint
  • Thread safety: unsafe

GetMaterialColor(material: Material): Color3

Parameters
NameType
materialMaterial
  • Thread safety: safe

GetTerrainWireframe(cframe: CFrame, size: Vector3): Array

Parameters
NameType
cframeCFrame
sizeVector3
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetWaterCell(x: int, y: int, z: int): Tuple

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
xint
yint
zint
  • Thread safety: unsafe

PasteRegion(region: TerrainRegion, corner: Vector3int16, pasteEmptyCells: bool): null

Parameters
NameType
regionTerrainRegion
cornerVector3int16
pasteEmptyCellsbool
  • Thread safety: unsafe

ReadVoxels(region: Region3, resolution: float): Tuple

  • Custom Lua stateThis member uses the Lua C API directly.
Parameters
NameType
regionRegion3
resolutionfloat
  • Thread safety: safe

ReplaceMaterial(region: Region3, resolution: float, sourceMaterial: Material, targetMaterial: Material): null

Parameters
NameType
regionRegion3
resolutionfloat
sourceMaterialMaterial
targetMaterialMaterial
  • Thread safety: unsafe

ReplaceMaterialInTransform(cframe: CFrame, size: Vector3, sourceMaterial: Material, targetMaterial: Material): null

Parameters
NameType
cframeCFrame
sizeVector3
sourceMaterialMaterial
targetMaterialMaterial
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

ReplaceMaterialInTransformSubregion(cframe: CFrame, size: Vector3, sourceMaterial: Material, targetMaterial: Material, targetRegion: Region3int16): null

Parameters
NameType
cframeCFrame
sizeVector3
sourceMaterialMaterial
targetMaterialMaterial
targetRegionRegion3int16
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

SetCell(x: int, y: int, z: int, material: CellMaterial, block: CellBlock, orientation: CellOrientation): null

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
xint
yint
zint
materialCellMaterial
blockCellBlock
orientationCellOrientation
  • Thread safety: unsafe

SetCells(region: Region3int16, material: CellMaterial, block: CellBlock, orientation: CellOrientation): null

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
regionRegion3int16
materialCellMaterial
blockCellBlock
orientationCellOrientation
  • Thread safety: unsafe

SetMaterialColor(material: Material, value: Color3): null

Parameters
NameType
materialMaterial
valueColor3
  • Thread safety: unsafe

SetMaterialInTransform(cframe: CFrame, size: Vector3, targetMaterial: Material): null

Parameters
NameType
cframeCFrame
sizeVector3
targetMaterialMaterial
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

SetMaterialInTransformSubregion(cframe: CFrame, size: Vector3, targetMaterial: Material, targetRegion: Region3int16): null

Parameters
NameType
cframeCFrame
sizeVector3
targetMaterialMaterial
targetRegionRegion3int16
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

SetWaterCell(x: int, y: int, z: int, force: WaterForce, direction: WaterDirection): null

  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
xint
yint
zint
forceWaterForce
directionWaterDirection
  • Thread safety: unsafe

SmoothRegion(region: Region3, resolution: float, strength: float): Tuple

  • Custom Lua stateThis member uses the Lua C API directly.
Parameters
NameType
regionRegion3
resolutionfloat
strengthfloat
  • Security: RobloxScriptSecurity.
  • Thread safety: safe

WorldToCell(position: Vector3): Vector3

Parameters
NameType
positionVector3
  • Thread safety: unsafe

WorldToCellPreferEmpty(position: Vector3): Vector3

Parameters
NameType
positionVector3
  • Thread safety: unsafe

WorldToCellPreferSolid(position: Vector3): Vector3

Parameters
NameType
positionVector3
  • Thread safety: unsafe

WriteVoxels(region: Region3, resolution: float, materials: Array, occupancy: Array): null

  • Custom Lua stateThis member uses the Lua C API directly.
Parameters
NameType
regionRegion3
resolutionfloat
materialsArray
occupancyArray
  • Thread safety: unsafe

Removed members

Methods

  • breakJoints
  • BreakJoints
  • CancelImportHeightmap
  • clone
  • Clone
  • destroy
  • Destroy
  • HideTerrainRegion
  • ImportHeightmap
  • ImportHeightMap
  • makeJoints
  • MakeJoints
  • resize
  • Resize
  • SetImportHeightmapPaused
  • SetTerrainRegion
  • SetWireframeRegion
  • ShowTerrainRegion

Properties

  • Anchored
  • Archivable
  • BrickColor
  • CanCollide
  • CFrame
  • DebugAnimation
  • Elasticity
  • Friction
  • Locked
  • Material
  • Name
  • Position
  • Reflectance
  • RotVelocity
  • Transparency
  • Velocity

Events

  • TerrainProgressUpdate

External links