diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index a3c97db5d..8e4378dfa 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -138,6 +138,7 @@ public: v3f getPosition() const { return m_position; } v3f getEyePosition() const { return m_position + getEyeOffset(); } v3f getEyeOffset() const; + void setEyeHeight(float eye_height) { m_eye_height = eye_height; } void setCollisionbox(const aabb3f &box) { m_collisionbox = box; } @@ -181,6 +182,7 @@ private: aabb3f m_collisionbox = aabb3f(-BS * 0.30f, 0.0f, -BS * 0.30f, BS * 0.30f, BS * 1.75f, BS * 0.30f); bool m_can_zoom = true; + float m_eye_height = 1.625f; GenericCAO *m_cao = nullptr; Client *m_client; |