sm.voxelTerrainCell.copyTileCellVoxels

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

Kind: Function

Environments: Terrain

Terrain

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

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 (optional) Vec3 The source chunk coord in the tile cell to copy.
dstPos (optional) Vec3 The destination coord in the cell voxel grid.
srcSize (optional) Vec3 The source size in chunks to copy.