From 340f2947c99220f312b4cabce22f7634c9879921 Mon Sep 17 00:00:00 2001 From: Cry dsch Date: Tue, 1 Jun 2021 21:35:19 +0200 Subject: [PATCH] Update example models_loading --- examples/models/models_loading.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c index 91e25f4dc..16f122ee8 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; } //----------------------------------------------------------------------------------