From ce52d3e7b5541baf9969caeba1231658f931907b Mon Sep 17 00:00:00 2001 From: fabriceci Date: Thu, 12 Aug 2021 12:42:17 +0200 Subject: Fix move and slide regression by allowing multiple collision direction --- scene/3d/physics_body_3d.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'scene/3d') 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; -- cgit v1.2.3