summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-05-31 18:36:03 +0200
committerRay <[email protected]>2021-05-31 18:36:03 +0200
commitd39d26f27504945816d9e1caea2d959d1ee336d5 (patch)
treea0f303c7835f28e99ecf9787ea43b8368b51c4a8 /examples/models/models_loading.c
parent9cc2cee9367363b6b35c3dae2d63b2838e2ae9d2 (diff)
downloadraylib-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.c2
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;
}
//----------------------------------------------------------------------------------