From: Daniel Karbach Date: Mon, 19 Oct 2015 15:21:41 +0000 (+0200) Subject: use eye transform for client rendering X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=57d3e33b47c92d56de4007e23800d9bcdb353463;p=blank.git use eye transform for client rendering --- 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);