mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Player eye height: Make this a settable player object property
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user