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/content_sao.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/content_sao.cpp') diff --git a/src/content_sao.cpp b/src/content_sao.cpp index d59f97276..20b0396cd 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -1429,7 +1429,10 @@ bool PlayerSAO::checkMovementCheat() bool PlayerSAO::getCollisionBox(aabb3f *toset) const { - *toset = aabb3f(-BS * 0.30, 0.0, -BS * 0.30, BS * 0.30, BS * 1.75, BS * 0.30); + //update collision box + toset->MinEdge = m_prop.collisionbox.MinEdge * BS + v3f(0, BS, 0); + toset->MaxEdge = m_prop.collisionbox.MaxEdge * BS + v3f(0, BS, 0); + toset->MinEdge += m_base_position; toset->MaxEdge += m_base_position; return true; -- cgit v1.2.3