1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-06 09:50:23 +02: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

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