summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_loading.c
diff options
context:
space:
mode:
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 8b4002d1..d35db347 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(GetMouseRay(GetMousePosition(), camera), bounds).hit) selected = !selected;
+ if (GetRayCollisionBox(GetScreenToWorldRay(GetMousePosition(), camera), bounds).hit) selected = !selected;
else selected = false;
}
//----------------------------------------------------------------------------------