Fix stuck in walker control
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 15:48:51 +09:00
parent 623308cd67
commit 8a32f1e2e5

View file

@ -272,7 +272,9 @@ bool TRunnerScreen::update(float dt) {
walkers[controlled_walker_idx.value()].player_idle();
goto post_check_click;
}
} else if (IsMouseButtonPressed(0)) {
}
if (IsMouseButtonPressed(0)) {
float press_x = GetTouchX();
float press_y = GetTouchY();
Ray ray = GetMouseRay(Vector2{press_x, press_y}, camera);