<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Collider](./server.collider.md) &gt; [setVoxel](./server.collider.setvoxel.md)

## Collider.setVoxel() method

Sets the voxel at the given coordinate as filled or not filled.

**Signature:**

```typescript
setVoxel(coordinate: Vector3Like, filled: boolean): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

coordinate


</td><td>

[Vector3Like](./server.vector3like.md)


</td><td>

The coordinate of the voxel to set.


</td></tr>
<tr><td>

filled


</td><td>

boolean


</td><td>

True if the voxel at the coordinate should be filled, false if it should be removed.


</td></tr>
</tbody></table>
**Returns:**

void

