Skip to content

Box2DDebugDrawSystem Class

Definition

Namespace: Brine2D.Systems.Physics

public sealed class Box2DDebugDrawSystem : Brine2D.ECS.Systems.RenderSystemBase, System.IDisposable

Inheritance System.ObjectRenderSystemBase → Box2DDebugDrawSystem

Implements System.IDisposable

Properties
Camera When set, all debug draw coordinates are transformed through WorldToScreen(Vector2) so shapes align with the game view when the camera pans or zooms. Leave null to draw in raw world space.
DrawStrings When true, Box2D debug string annotations (body names, mass centers, etc.) are forwarded to IRenderer.DrawText. Defaults to false because most renderers do not have a debug font loaded and the call would silently fail or throw.