Walkers' bounding box now visible unselected
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
This commit is contained in:
parent
8a32f1e2e5
commit
11c7dec3ed
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue