<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [PlayerCamera](./server.playercamera.md) &gt; [setCollidesWithBlocks](./server.playercamera.setcollideswithblocks.md)

## PlayerCamera.setCollidesWithBlocks() method

Sets whether the camera collides with blocks instead of clipping through them.

**Signature:**

```typescript
setCollidesWithBlocks(collidesWithBlocks: boolean): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

collidesWithBlocks


</td><td>

boolean


</td><td>

Whether the camera should collide with blocks.

\*\*Category:\*\* Players


</td></tr>
</tbody></table>
**Returns:**

void

