Browse Source

Merge pull request #51556 from fabriceci/fix-move-and-slide-regression-multiple-collision-3x

[3.x] Fix move and slide regression by allowing multiple collision direction
Rémi Verschelde 4 years ago
parent
commit
e2e34812fe
1 changed files with 0 additions and 3 deletions
  1. 0 3
      scene/3d/physics_body.cpp

+ 0 - 3
scene/3d/physics_body.cpp

@@ -1210,9 +1210,6 @@ Vector3 KinematicBody::move_and_slide_with_snap(const Vector3 &p_linear_velocity
 }
 
 void KinematicBody::_set_collision_direction(const Collision &p_collision, const Vector3 &p_up_direction, float p_floor_max_angle) {
-	on_floor = false;
-	on_ceiling = false;
-	on_wall = false;
 	if (p_up_direction == Vector3()) {
 		//all is a wall
 		on_wall = true;