Update models_basic_voxel.c

This commit is contained in:
Ray
2026-06-07 22:59:20 +02:00
parent 04b66f1965
commit 9bd3d84f3d
+1 -1
View File
@@ -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;