<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [RigidBody](./server.rigidbody.md) &gt; [setCcdEnabled](./server.rigidbody.setccdenabled.md)

## RigidBody.setCcdEnabled() method

Sets whether the rigid body has continuous collision detection enabled.

**Signature:**

```typescript
setCcdEnabled(ccdEnabled: boolean): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

ccdEnabled


</td><td>

boolean


</td><td>

Whether the rigid body has continuous collision detection enabled.


</td></tr>
</tbody></table>
**Returns:**

void

