From d96e33bb1772c28f630de32e09201c0cdea6f896 Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 21 Nov 2024 18:02:06 +0200 Subject: Updated examples to ReiLua 0.9.0. --- examples/ray_box_cells/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/ray_box_cells/main.lua') diff --git a/examples/ray_box_cells/main.lua b/examples/ray_box_cells/main.lua index 5fb49ec..ef6cde4 100644 --- a/examples/ray_box_cells/main.lua +++ b/examples/ray_box_cells/main.lua @@ -61,7 +61,7 @@ function RL.update( delta ) -- Raycast. if not guiMouseHover and RL.IsMouseButtonPressed( RL.MOUSE_BUTTON_LEFT ) then - ray = RL.GetMouseRay( RL.GetMousePosition(), camera.camera ) + ray = RL.GetScreenToWorldRay( RL.GetMousePosition(), camera.camera ) rayCol = box:getRayCollisionMAS( ray ) cells, exitPoint = RL.GetRayBoxCells( ray, box:maxToPos(), cellSize ) -- cgit v1.2.3