mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Move player collisionbox to player class
This commit is contained in:
parent
386108f982
commit
88ffb3f73b
4 changed files with 15 additions and 19 deletions
|
@ -1472,6 +1472,11 @@ std::string PlayerSAO::getPropertyPacket()
|
|||
}
|
||||
|
||||
bool PlayerSAO::getCollisionBox(aabb3f *toset) {
|
||||
//player collision handling is already done clientside no need to do it twice
|
||||
return false;
|
||||
//update collision box
|
||||
*toset = m_player->getCollisionbox();
|
||||
|
||||
toset->MinEdge += m_base_position;
|
||||
toset->MaxEdge += m_base_position;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue