summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorTeTpaAka <TeTpaAka@users.noreply.github.com>2015-05-29 20:30:55 +0200
committerparamat <mat.gregory@virginmedia.com>2017-07-21 02:03:22 +0100
commit49920cfe8dc7869bb8235c6fe2b8ef26e2a523ca (patch)
tree4ef6f620933a5af6e845bf5cb2a4c448331bb5b1 /src/localplayer.h
parent5045bdc6d81445ecf600ff9c268886cada935a7f (diff)
downloadminetest-49920cfe8dc7869bb8235c6fe2b8ef26e2a523ca.tar.gz
minetest-49920cfe8dc7869bb8235c6fe2b8ef26e2a523ca.tar.bz2
minetest-49920cfe8dc7869bb8235c6fe2b8ef26e2a523ca.zip
Player collisionbox: Make settable
Breaks compatibility with old clients.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h2
1 files changed, 2 insertions, 0 deletions
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);