hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
70 lines (33 loc) • 1.08 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Simulation](./server.simulation.md) > [enableDebugRendering](./server.simulation.enabledebugrendering.md)
## Simulation.enableDebugRendering() method
Enables or disables debug rendering for the simulation. When enabled, all colliders and rigid body outlines will be rendered in the world. Do not enable this in production. In large worlds enabling this can cause noticable lag and RTT spikes.
**Signature:**
```typescript
enableDebugRendering(enabled: boolean, filterFlags?: RAPIER.QueryFilterFlags): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
enabled
</td><td>
boolean
</td><td>
Whether to enable debug rendering.
</td></tr>
<tr><td>
filterFlags
</td><td>
RAPIER.QueryFilterFlags
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
void