Skip to main content

Module physics_debug_extraction

Module physics_debug_extraction 

Source
Expand description

Physics debug-render extraction — opt-in DataSystem.

Lifts the previous PhysicsDebugLane (which was registered as a second lane on PhysicsAgent and replaced the simulation when active — i.e. enabling debug overlay also stopped physics) into a side-channel [crate::ecs::DataSystem] that runs in PostSimulation alongside the normal physics step. Per CLAD: debug data extraction is a Data-domain invariant projection, not an alternative agent strategy.

Activation is per-entity via PhysicsDebugData::enabled: when no entity has the component, the system is a no-op.