From 3b7be851515bf8ec4d9585352a5df8ba5aa85ac0 Mon Sep 17 00:00:00 2001 From: aiafrasinei Date: Thu, 7 Mar 2024 13:28:11 +0200 Subject: Screen space related functions consistency (#3830) * Screen/world-space related functions rename * Update raylib_api.* by CI --------- Co-authored-by: github-actions[bot] --- examples/text/text_draw_3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/text') diff --git a/examples/text/text_draw_3d.c b/examples/text/text_draw_3d.c index b279f1b3..ed4e6ce6 100644 --- a/examples/text/text_draw_3d.c +++ b/examples/text/text_draw_3d.c @@ -195,7 +195,7 @@ int main(void) // Handle clicking the cube if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { - Ray ray = GetMouseRay(GetMousePosition(), camera); + Ray ray = GetScreenToWorldRay(GetMousePosition(), camera); // Check collision between ray and box RayCollision collision = GetRayCollisionBox(ray, -- cgit v1.2.3