fixed rendering

This commit is contained in:
2025-09-09 19:43:27 +02:00
parent ce456b6b26
commit 50f9d4c0c8
5 changed files with 66 additions and 21 deletions

View File

@@ -20,8 +20,9 @@ namespace Voxel
public void BreakBlock()
{
var (success, hit, x, y, z) = _world.Raycast(Camera.Position, Camera.Front * 10, 100);
var (success, hit, x, y, z) = _world.Raycast(Camera.Position, Camera.Front.Normalized(), 10);
if (!success) return;
_world.SetBlock(x, y, z, Blocks.Air);
}