summaryrefslogtreecommitdiffstats
path: root/servers/physics_server_2d.h
diff options
context:
space:
mode:
authorfabriceci <fabricecipolla@gmail.com>2022-08-22 13:38:57 +0200
committerfabriceci <fabricecipolla@gmail.com>2022-09-18 22:23:09 +0200
commit10395f5df2a1cac6ed83e674c084e62a88fcdde9 (patch)
tree06d018afc4f808ab5c91496f5820bf5360d61a90 /servers/physics_server_2d.h
parente5594c26b14e75d8b75d1f697cf2bfbd6254a50c (diff)
downloadredot-engine-10395f5df2a1cac6ed83e674c084e62a88fcdde9.tar.gz
Turn on recovery as collisions only for floor snapping as this leads to unwanted behaviour for other surface than the floor.
Diffstat (limited to 'servers/physics_server_2d.h')
-rw-r--r--servers/physics_server_2d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_server_2d.h b/servers/physics_server_2d.h
index d5b4dc05e6..d9572e6594 100644
--- a/servers/physics_server_2d.h
+++ b/servers/physics_server_2d.h
@@ -490,7 +490,7 @@ public:
bool collide_separation_ray = false;
HashSet<RID> exclude_bodies;
HashSet<ObjectID> exclude_objects;
- bool recovery_as_collision = false;
+ bool recovery_as_collision = false; // Don't report margin recovery as collision by default, only used for floor snapping.
MotionParameters() {}