Home > server > Simulation > enableDebugRendering
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:
enableDebugRendering(enabled: boolean, filterFlags?: RAPIER.QueryFilterFlags): void;|
Parameter |
Type |
Description |
|---|---|---|
|
enabled |
boolean |
Whether to enable debug rendering. |
|
filterFlags |
RAPIER.QueryFilterFlags |
(Optional) |
void