Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

debug_bones

The "bones" provider for @builtin::modules.debugViz: appends one green line per skeletal joint-to-parent pair into the shared debug-visualization batch, every edit-mode tick.

debugViz.registerProvider("bones", require("@builtin::modules.debug_bones").tick)

DebugViz.component registers this provider automatically — attach it to one entity to draw a bone-line skeleton on every animated Skeleton in the scene alongside whatever other providers are registered.

How it works

tick(emit) queries every entity carrying a Skeleton, reads its current animated pose via skeleton.jointTransforms(entityId), and appends one line per joint back to its parent's world position. Root joints (parent == -1) draw no line. The core owns the anchor, material, buffers, and render feature that actually draw the batch — this module only contributes geometry.

API

  • debug_bones.tick(emit) — append one line per joint-to-parent pair, for every Skeleton in the scene, into the shared batch.