mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-17 14:55:13 -05:00
Server should use the same eye position as the client
This commit is contained in:
parent
b318e82356
commit
c007d8219e
@ -380,8 +380,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
|
|||||||
v3s16 center = getNodeBlockPos(center_nodepos);
|
v3s16 center = getNodeBlockPos(center_nodepos);
|
||||||
|
|
||||||
// Camera position and direction
|
// Camera position and direction
|
||||||
v3f camera_pos =
|
v3f camera_pos = player->getEyePosition();
|
||||||
playerpos + v3f(0, BS+BS/2, 0);
|
|
||||||
v3f camera_dir = v3f(0,0,1);
|
v3f camera_dir = v3f(0,0,1);
|
||||||
camera_dir.rotateYZBy(player->getPitch());
|
camera_dir.rotateYZBy(player->getPitch());
|
||||||
camera_dir.rotateXZBy(player->getYaw());
|
camera_dir.rotateXZBy(player->getYaw());
|
||||||
|
Loading…
Reference in New Issue
Block a user