Skip to content
Snippets Groups Projects
Commit c007d821 authored by Giuseppe Bilotta's avatar Giuseppe Bilotta
Browse files

Server should use the same eye position as the client

parent b318e823
Branches
Tags
No related merge requests found
......@@ -380,8 +380,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
v3s16 center = getNodeBlockPos(center_nodepos);
// Camera position and direction
v3f camera_pos =
playerpos + v3f(0, BS+BS/2, 0);
v3f camera_pos = player->getEyePosition();
v3f camera_dir = v3f(0,0,1);
camera_dir.rotateYZBy(player->getPitch());
camera_dir.rotateXZBy(player->getYaw());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment