setVoxel
setVoxel(
authority,entity,cell,filled,setVoxelOptions?):void
Fills or empties one cell of entity’s voxels collider, on the world
authority decides for, as Rapier’s setVoxel does: the body keeps
every other cell and every pair, and the change streams.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
EntityAuthority |
entity |
Entity |
cell |
VoxelCell |
filled |
boolean |
setVoxelOptions |
SetVoxelOptions |
Returns
Section titled “Returns”void
Example
Section titled “Example”setVoxel(step, island, [4, 2, -1], false); // dug out