跳转到内容

heightVoxelSource

此内容尚不支持你的语言。

heightVoxelSource(heightAt, material?): VoxelSource

Defined in: sdk/src/voxel/source.ts:86

A body under a height field: solid below heightAt, so a Terrain’s own ground, or any other, can be dug into as a volume. The answer must be the same for the same place, and null where it knows no height is air.

(x, z) => number | null

(depth, sample) => void

VoxelSource