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:
parent
a07d2594e3
commit
4c40e0775c
7 changed files with 15 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue