From b6f4a9c7e1a4f0bac66fd6f6ff844425ac775975 Mon Sep 17 00:00:00 2001 From: TeTpaAka Date: Fri, 29 May 2015 20:30:55 +0200 Subject: Make the player collisionbox settable --- 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 9cbefae23..efea8bb86 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -137,6 +137,8 @@ public: v3f getEyePosition() const { return m_position + getEyeOffset(); } v3f getEyeOffset() const; + void setCollisionbox(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