struct
PhysicsDebugSettings
Toggles that drive PhysicsWorld::DrawDebug(). PhysicsSystem::Update mirrors the p.Debug* console variables into this struct once per tick, so the cost of a disabled aspect is one if (!flag) return;. A tool wanting finer control than the cvars can write the struct through PhysicsWorld::GetDebugSettings(), but the cvar mirror will overwrite it on the next tick.
- Module
- Physics
- Header
#include "Physics/PhysicsDebug.h"- Namespace
Mowo
enabled is the master switch (p.Debug) — when false every other field is ignored and DrawDebug() bails out before iterating bodies.
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default false. |
bool | drawShapes | wireframe of each body's collider Default true. |
bool | drawAABB | world-space bounding box from BodyManager Default false. |
bool | drawCOM | 3-axis cross at the centre of mass Default false. |
bool | drawVelocity | arrow from COM showing v * velocityScale Default false. |
bool | drawSleepingDifferent | dim color for inactive bodies Default true. |
bool | drawConstraints | anchor-to-anchor line per active constraint Default true. |
bool | drawContactPoints | contact normals captured this frame Default false. |
bool | drawIslands | box per simulation island, one colour each Default false. |
bool | drawVehicles | suspension travel, wheel contacts and contact normals per wheel Default false. |
bool | drawBroadPhaseLayers | body bounds tinted by object layer, dimmed for the non-moving broad phase Default false. |
float | velocityScale | How far the velocity arrow extends — seconds of look-ahead. At 0.2s a body moving 5 m/s draws a 1 m arrow. Default 0.2f. |
Generated from Physics/PhysicsDebug.h via physics.json · Nov 4, 2026Version 1.0.0