Walkers' bounding box now visible unselected
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s

This commit is contained in:
Stephen Seo 2023-08-15 19:21:43 +09:00
parent 8a32f1e2e5
commit 11c7dec3ed

View file

@ -404,6 +404,13 @@ bool TRunnerScreen::draw() {
// TODO DEBUG
if (!controlled_walker_idx.has_value()) {
DrawLine3D(Vector3{0.0F, 3.0F, 0.0F}, mouse_hit, BLACK);
for (const auto &walker : walkers) {
BoundingBox bb = walker.get_body_bb();
bb.min = bb.min - Vector3{0.001F, 0.001F, 0.001F};
bb.max = bb.max + Vector3{0.001F, 0.001F, 0.001F};
DrawBoundingBox(bb, RED);
}
}
EndMode3D();