From fe8510e5d8321d5e3c972de168778f89f0f6619e Mon Sep 17 00:00:00 2001 From: Blue Staggo Date: Sat, 28 Dec 2024 11:11:40 +0000 Subject: [PATCH] Fix vertical view bobbing --- VoxelThing.Client/src/Game.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VoxelThing.Client/src/Game.cs b/VoxelThing.Client/src/Game.cs index 257641a..10b926c 100644 --- a/VoxelThing.Client/src/Game.cs +++ b/VoxelThing.Client/src/Game.cs @@ -248,7 +248,6 @@ protected override void OnUpdateFrame(FrameEventArgs args) camera.Position.Y += Player.EyeLevel; float yaw = (float)Player.Yaw; float pitch = (float)Player.Pitch; - camera.Rotation = (yaw, pitch); // Selection raycast if (World is not null) @@ -277,6 +276,8 @@ protected override void OnUpdateFrame(FrameEventArgs args) camera.Position.Y += Math.Abs(renderWalk) * 0.1; camera.Position += (Vector3d)camera.Right * renderWalk * 0.025; } + + camera.Rotation = (yaw, pitch); } Profiler.Pop();