summaryrefslogtreecommitdiffstats
path: root/scene/3d/physics_body_3d.h
diff options
context:
space:
mode:
authorMikael Hermansson <mikael@hermansson.io>2024-02-06 14:23:08 +0100
committerMikael Hermansson <mikael@hermansson.io>2024-02-06 14:29:43 +0100
commitf2d615cdc7bbb52ee2462eff824cfd559343a282 (patch)
tree4863fd9bdc8be43ed37537e89eacffe0df4c3168 /scene/3d/physics_body_3d.h
parentd3352813ea44447bfbf135efdec23acc4d1d3f89 (diff)
downloadredot-engine-f2d615cdc7bbb52ee2462eff824cfd559343a282.tar.gz
Fix contact count sometimes being incorrect in `_process`
Diffstat (limited to 'scene/3d/physics_body_3d.h')
-rw-r--r--scene/3d/physics_body_3d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/physics_body_3d.h b/scene/3d/physics_body_3d.h
index e8373d5907..b84b7c4f02 100644
--- a/scene/3d/physics_body_3d.h
+++ b/scene/3d/physics_body_3d.h
@@ -177,6 +177,7 @@ private:
bool ccd = false;
int max_contacts_reported = 0;
+ int contact_count = 0;
bool custom_integrator = false;