sm.voxelTerrainCell.copyTileCellVoxelsOnlyFilled
Copies a custom amount of voxel data from a tile to the voxel grid.
Kind: Function
Environments: Terrain
Terrain
sm.voxelTerrainCell.copyTileCellVoxelsOnlyFilled(
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 |
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. |