summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorfabriceci <fabricecipolla@gmail.com>2021-08-12 12:42:17 +0200
committerfabriceci <fabricecipolla@gmail.com>2021-08-12 12:42:17 +0200
commitce52d3e7b5541baf9969caeba1231658f931907b (patch)
tree2662f6c135360fa1183a5ea9f7fc69b33d99a19c /scene
parent2eb3c9580f51a9a659e5ad36597733ae9f86bd2b (diff)
Fix move and slide regression by allowing multiple collision direction
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/physics_body_3d.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp
index 331a460dee..e1e6153bfb 100644
--- a/scene/3d/physics_body_3d.cpp
+++ b/scene/3d/physics_body_3d.cpp
@@ -1223,9 +1223,6 @@ void CharacterBody3D::move_and_slide() {
}
void CharacterBody3D::_set_collision_direction(const PhysicsServer3D::MotionResult &p_result) {
- on_floor = false;
- on_ceiling = false;
- on_wall = false;
if (up_direction == Vector3()) {
//all is a wall
on_wall = true;