1
0
Fork 0

Merge pull request #101231 from mihe/jolt/init-debug-count

Fix debug contact count not being initialized when using Jolt Physics
This commit is contained in:
Rémi Verschelde 2025-01-10 23:06:07 +01:00
commit 74682f9383
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class JoltContactListener3D final
#ifdef DEBUG_ENABLED
PackedVector3Array debug_contacts;
std::atomic_int debug_contact_count;
std::atomic_int debug_contact_count = 0;
#endif
virtual void OnContactAdded(const JPH::Body &p_body1, const JPH::Body &p_body2, const JPH::ContactManifold &p_manifold, JPH::ContactSettings &p_settings) override;