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

Make the player collisionbox settable

This commit is contained in:
TeTpaAka 2015-05-29 20:30:55 +02:00 committed by ShadowNinja
parent 43d1f375d1
commit b6f4a9c7e1
4 changed files with 14 additions and 2 deletions

View file

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