diff --git a/include/reactphysics3d/utils/DebugRenderer.h b/include/reactphysics3d/utils/DebugRenderer.h index 93f22b5c..8c1b90e3 100644 --- a/include/reactphysics3d/utils/DebugRenderer.h +++ b/include/reactphysics3d/utils/DebugRenderer.h @@ -328,4 +328,16 @@ inline void DebugRenderer::setContactNormalLength(decimal contactNormalLength) { } +// Hash function for a DebugItem +namespace std { + + template <> struct hash { + + size_t operator()(const reactphysics3d::DebugRenderer::DebugItem& debugItem) const { + + return std::hash{}(static_cast(debugItem)); + } + }; +} + #endif