1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Player eye height: Make this a settable player object property

This commit is contained in:
paramat 2017-11-03 19:10:53 +00:00 committed by paramat
parent a07d2594e3
commit 4c40e0775c
7 changed files with 15 additions and 4 deletions

View file

@ -718,7 +718,8 @@ v3s16 LocalPlayer::getLightPosition() const
v3f LocalPlayer::getEyeOffset() const
{
float eye_height = camera_barely_in_ceiling ? 1.5f : 1.625f;
float eye_height = camera_barely_in_ceiling ?
m_eye_height - 0.125f : m_eye_height;
return v3f(0, BS * eye_height, 0);
}