Updated examples to ReiLua 0.9.0.

This commit is contained in:
jussi
2024-11-21 18:02:06 +02:00
parent 3d5eeac3d7
commit d96e33bb17
5 changed files with 35 additions and 20 deletions

View File

@@ -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 )