summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorfabriceci <fabricecipolla@gmail.com>2021-09-28 16:40:12 +0200
committerfabriceci <fabricecipolla@gmail.com>2021-09-28 22:31:46 +0200
commitdd5f01e83e337c3c4ea771052a2075761e2bcef3 (patch)
tree5018a63de3ffafce2dc9a0758b981970992cbca2 /scene
parentc38ef949514444897da224f2e7165d74c083d28b (diff)
Set stop on slope on by default on CharacterBody.
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/physics_body_2d.h2
-rw-r--r--scene/3d/physics_body_3d.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index ac1a1357f1..42b602db2f 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -327,8 +327,8 @@ private:
real_t margin = 0.08;
MotionMode motion_mode = MOTION_MODE_GROUNDED;
- bool floor_stop_on_slope = false;
bool floor_constant_speed = false;
+ bool floor_stop_on_slope = true;
bool floor_block_on_wall = true;
bool slide_on_ceiling = true;
int max_slides = 4;
diff --git a/scene/3d/physics_body_3d.h b/scene/3d/physics_body_3d.h
index 942fcc44c5..00a5190824 100644
--- a/scene/3d/physics_body_3d.h
+++ b/scene/3d/physics_body_3d.h
@@ -364,8 +364,8 @@ private:
};
CollisionState collision_state;
- bool floor_stop_on_slope = false;
bool floor_constant_speed = false;
+ bool floor_stop_on_slope = true;
bool floor_block_on_wall = true;
bool slide_on_ceiling = true;
int max_slides = 6;