mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Optimize entity-entity collision (#6587)
* Add IrrLicht type aliases * Add hash for IrrLicht vector * Add object map
This commit is contained in:
parent
2481ea27ce
commit
528908a4c3
13 changed files with 613 additions and 80 deletions
|
@ -224,6 +224,7 @@ ObjectProperties* UnitSAO::accessObjectProperties()
|
|||
|
||||
void UnitSAO::notifyObjectPropertiesModified()
|
||||
{
|
||||
m_env->updateActiveObject(this);
|
||||
m_properties_sent = false;
|
||||
}
|
||||
|
||||
|
@ -607,6 +608,7 @@ void LuaEntitySAO::setPos(const v3f &pos)
|
|||
if(isAttached())
|
||||
return;
|
||||
m_base_position = pos;
|
||||
m_env->updateActiveObject(this);
|
||||
sendPosition(false, true);
|
||||
}
|
||||
|
||||
|
@ -615,6 +617,7 @@ void LuaEntitySAO::moveTo(v3f pos, bool continuous)
|
|||
if(isAttached())
|
||||
return;
|
||||
m_base_position = pos;
|
||||
m_env->updateActiveObject(this);
|
||||
if(!continuous)
|
||||
sendPosition(true, true);
|
||||
}
|
||||
|
@ -1102,6 +1105,7 @@ void PlayerSAO::setBasePosition(const v3f &position)
|
|||
|
||||
// This needs to be ran for attachments too
|
||||
ServerActiveObject::setBasePosition(position);
|
||||
m_env->updateActiveObject(this);
|
||||
m_position_not_sent = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue