Add NavAreaProperties

This commit is contained in:
Wojtek Figat
2021-01-18 11:42:17 +01:00
parent 2ae78b9afd
commit c1216a4318
2 changed files with 45 additions and 0 deletions

View File

@@ -133,6 +133,11 @@ bool NavAgentMask::operator==(const NavAgentMask& other) const
return Mask == other.Mask;
}
bool NavAreaProperties::operator==(const NavAreaProperties& other) const
{
return Name == other.Name && Id == other.Id && Math::NearEqual(Cost, other.Cost);
}
bool NavMeshProperties::operator==(const NavMeshProperties& other) const
{
return Name == other.Name && Quaternion::NearEqual(Rotation, other.Rotation, 0.001f) && Agent == other.Agent;