From 57d3e33b47c92d56de4007e23800d9bcdb353463 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 19 Oct 2015 17:21:41 +0200 Subject: [PATCH] use eye transform for client rendering --- src/client/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/client.cpp b/src/client/client.cpp index fd4fbee..455550a 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -147,7 +147,9 @@ void InteractiveState::Update(int dt) { } void InteractiveState::Render(Viewport &viewport) { - viewport.WorldPosition(player.GetEntity().Transform(player.GetEntity().ChunkCoords())); + viewport.WorldPosition( + player.GetEntity().Transform(player.GetEntity().ChunkCoords()) + * player.GetEntity().GetModel().EyesTransform()); if (master.GetConfig().video.world) { chunk_renderer.Render(viewport); world.Render(viewport); -- 2.39.2