diff options
| author | Ray <[email protected]> | 2021-05-31 18:36:03 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-31 18:36:03 +0200 |
| commit | d39d26f27504945816d9e1caea2d959d1ee336d5 (patch) | |
| tree | a0f303c7835f28e99ecf9787ea43b8368b51c4a8 /examples/models/models_loading.c | |
| parent | 9cc2cee9367363b6b35c3dae2d63b2838e2ae9d2 (diff) | |
| download | raylib-d39d26f27504945816d9e1caea2d959d1ee336d5.tar.gz raylib-d39d26f27504945816d9e1caea2d959d1ee336d5.zip | |
Update models_loading.c
Diffstat (limited to 'examples/models/models_loading.c')
| -rw-r--r-- | examples/models/models_loading.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c index 91e25f4d..16f122ee 100644 --- a/examples/models/models_loading.c +++ b/examples/models/models_loading.c @@ -98,7 +98,7 @@ int main(void) if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { // Check collision between ray and box - if (CheckCollisionRayBox(GetMouseRay(GetMousePosition(), camera), bounds)) selected = !selected; + if (GetRayCollisionBox(GetMouseRay(GetMousePosition(), camera), bounds).hit) selected = !selected; else selected = false; } //---------------------------------------------------------------------------------- |
