Files
watrbx-game-engine/App/util/PhysicalProperties.cpp
T
2025-09-18 17:55:52 -04:00

25 lines
500 B
C++

#include "stdafx.h"
#include "util/PhysicalProperties.h"
namespace RBX {
size_t PhysicalProperties::hashCode() const
{
size_t seed = 0;
boost::hash_combine(seed, customEnabled);
boost::hash_combine(seed, density);
boost::hash_combine(seed, friction);
boost::hash_combine(seed, frictionWeight);
boost::hash_combine(seed, elasticity);
boost::hash_combine(seed, elasticityWeight);
return seed;
}
size_t hash_value(const PhysicalProperties& properties)
{
return properties.hashCode();
}
}