From 49920cfe8dc7869bb8235c6fe2b8ef26e2a523ca Mon Sep 17 00:00:00 2001 From: TeTpaAka Date: Fri, 29 May 2015 20:30:55 +0200 Subject: Player collisionbox: Make settable Breaks compatibility with old clients. --- src/localplayer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 32714ff32..9f7e92128 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -140,6 +140,8 @@ public: v3f getEyePosition() const { return m_position + getEyeOffset(); } v3f getEyeOffset() const; + void setCollisionbox(const aabb3f &box) { m_collisionbox = box; } + private: void accelerateHorizontal(const v3f &target_speed, const f32 max_increase); void accelerateVertical(const v3f &target_speed, const f32 max_increase); -- cgit v1.2.3