Skip to content

Latest commit

 

History

History
69 lines (33 loc) · 1.05 KB

File metadata and controls

69 lines (33 loc) · 1.05 KB

Home > server > Simulation > enableDebugRendering

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:

enableDebugRendering(enabled: boolean, filterFlags?: RAPIER.QueryFilterFlags): void;

Parameters

Parameter

Type

Description

enabled

boolean

Whether to enable debug rendering.

filterFlags

RAPIER.QueryFilterFlags

(Optional)

**Returns:**

void