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

TypeNameDescription
boolenabledDefault false.
booldrawShapeswireframe of each body's collider Default true.
booldrawAABBworld-space bounding box from BodyManager Default false.
booldrawCOM3-axis cross at the centre of mass Default false.
booldrawVelocityarrow from COM showing v * velocityScale Default false.
booldrawSleepingDifferentdim color for inactive bodies Default true.
booldrawConstraintsanchor-to-anchor line per active constraint Default true.
booldrawContactPointscontact normals captured this frame Default false.
booldrawIslandsbox per simulation island, one colour each Default false.
booldrawVehiclessuspension travel, wheel contacts and contact normals per wheel Default false.
booldrawBroadPhaseLayersbody bounds tinted by object layer, dimmed for the non-moving broad phase Default false.
floatvelocityScaleHow 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