Fix missing "break" in collision success
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s

This commit is contained in:
Stephen Seo 2023-08-09 14:08:59 +09:00
parent ba241417a2
commit 7484e710e7

View file

@ -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;
}
}
}