summaryrefslogtreecommitdiffhomepage
path: root/examples/text
diff options
context:
space:
mode:
Diffstat (limited to 'examples/text')
-rw-r--r--examples/text/text_draw_3d.c2
1 files changed, 1 insertions, 1 deletions
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,