Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

debug_bounds

The "bounds" provider for @builtin::modules.debugViz: appends one amber wireframe box per scene mesh's world-space AABB into the shared debug-visualization batch, every edit-mode tick.

debugViz.registerProvider("bounds", require("@builtin::modules.debug_bounds").tick)

DebugViz.component registers this provider automatically — attach it to one entity to draw a box around every mesh in the scene alongside whatever other providers are registered.

How it works

tick(emit) queries every entity carrying a Mesh (skipping debugViz.anchorId(), the core's own hidden draw-anchor, which itself carries an invisible Mesh), reads its bounds(), and appends a box via emit.box. The core owns the anchor, material, buffers, and render feature that actually draw the batch — this module only contributes geometry.

API

  • debug_bounds.tick(emit) — append one box per scene mesh's current world-space AABB into the shared batch.