PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

ReadVoxels

Returns a certain region of smooth terrain in table format. Both of the returned arrays have an additional Size property, a datatype/Vector3.

Parameters

Name Type Default Description

Target region to write to. Must be aligned to the voxel grid. Will throw an error if region is too large.

Voxel resolution. Must be 4.

Returns

Return Type Summary

Returns raw voxel data as two 3D arrays.

  • materials - 3D array of Enum/Material from the target area. Also contains a Size field, equal to the dimensions of the nested arrays.
  • occupancies - 3D array of occupancy values from the target area. Also contains a Size field, equal to the dimensions of the nested arrays.

Code Samples