Fix missing "break" in collision success
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
This commit is contained in:
parent
ba241417a2
commit
7484e710e7
1 changed files with 2 additions and 0 deletions
|
@ -263,9 +263,11 @@ bool TRunnerScreen::update(float dt) {
|
|||
if (auto collision = GetRayCollisionTriangle(ray, nw, sw, ne);
|
||||
collision.hit) {
|
||||
on_collide_fn(collision.point);
|
||||
break;
|
||||
} else if (auto collision = GetRayCollisionTriangle(ray, ne, sw, se);
|
||||
collision.hit) {
|
||||
on_collide_fn(collision.point);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue