1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Player collisionbox: Make settable

Breaks compatibility with old clients.
This commit is contained in:
TeTpaAka 2015-05-29 20:30:55 +02:00 committed by paramat
parent 5045bdc6d8
commit 49920cfe8d
4 changed files with 13 additions and 8 deletions

View file

@ -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);