From 9bd3d84f3db7a78b6f7fe915a6696d8de70fa383 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 7 Jun 2026 22:59:20 +0200 Subject: [PATCH] Update models_basic_voxel.c --- examples/models/models_basic_voxel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/models/models_basic_voxel.c b/examples/models/models_basic_voxel.c index 127a7e989..8d8b6b0c7 100644 --- a/examples/models/models_basic_voxel.c +++ b/examples/models/models_basic_voxel.c @@ -77,7 +77,7 @@ int main(void) { // Cast a ray from the screen center (where crosshair would be) Vector2 screenCenter = { GetScreenWidth()/2.0f, GetScreenHeight()/2.0f }; - Ray ray = GetMouseRay(screenCenter, camera); + Ray ray = GetScreenToWorldRay(screenCenter, camera); // Check ray collision with all voxels float closestDistance = 99999.0f;