sm.voxelTerrainCell.copyTileCellVoxelsOnlyAirAndMasked

Copies a custom amount of voxel data from a tile to the voxel grid.

Kind: Function

Environments: Terrain

Terrain

sm.voxelTerrainCell.copyTileCellVoxelsOnlyAirAndMasked(
    tileUid,
    cellOffsetX,
    cellOffsetY,
    rotationStep,
    srcPos,
    dstPos,
    srcSize,
    voxelFilter
)

Open the full Terrain reference

Parameters:

Name Type Description
tileUid Uuid The tile uuid.
cellOffsetX integer The tile cell X offset.
cellOffsetY integer The tile cell Y offset.
rotationStep integer The tile rotation (0-3).
srcPos Vec3 The source chunk coord in the tile to copy.
dstPos Vec3 The destination coord in the cell voxel grid.
srcSize Vec3 The source size in chunks to copy.
voxelFilter integer The voxel material filter to be copied. (See sm.voxelTerrainCell.voxelFilter)