1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Load blocks and objects behind player when in third-persion front-view (#13431)

This commit is contained in:
lhofhansl
2023-05-29 10:26:42 -07:00
committed by GitHub
parent fc3d6c1dd9
commit a8ec6092e2
7 changed files with 41 additions and 20 deletions

View File

@@ -352,6 +352,8 @@ void ActiveBlockList::update(std::vector<PlayerSAO*> &active_players,
v3f camera_dir = v3f(0,0,1);
camera_dir.rotateYZBy(playersao->getLookPitch());
camera_dir.rotateXZBy(playersao->getRotation().Y);
if (playersao->getCameraInverted())
camera_dir = -camera_dir;
fillViewConeBlock(pos,
player_ao_range,
playersao->getEyePosition(),