summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;
}
//----------------------------------------------------------------------------------