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