From 5e59d1d061a39203d7f4e4c258536908cd96cf98 Mon Sep 17 00:00:00 2001 From: Alex <31382049+whatthesamuel@users.noreply.github.com> Date: Sun, 1 Sep 2024 10:05:54 +0900 Subject: [PATCH] update deprecated function updated GetScreenToWorldRay() to GetMouseRay() --- examples/models/models_loading.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c index d35db347c..d90584e1e 100644 --- a/examples/models/models_loading.c +++ b/examples/models/models_loading.c @@ -109,7 +109,7 @@ int main(void) if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { // Check collision between ray and box - if (GetRayCollisionBox(GetScreenToWorldRay(GetMousePosition(), camera), bounds).hit) selected = !selected; + if (GetRayCollisionBox(GetMouseRay(GetMousePosition(), camera), bounds).hit) selected = !selected; else selected = false; } //---------------------------------------------------------------------------------- @@ -150,4 +150,4 @@ int main(void) //-------------------------------------------------------------------------------------- return 0; -} \ No newline at end of file +}