<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) &gt; [canSwim](./server.defaultplayerentitycontroller.canswim.md)

## DefaultPlayerEntityController.canSwim property

A function allowing custom logic to determine if the entity can swim.

**Signature:**

```typescript
canSwim: (controller: DefaultPlayerEntityController) => boolean;
```
