Browse Source

Merge pull request #50905 from fabriceci/fix-multiple-direction-collision

Allow multiple collision direction at the same time
Rémi Verschelde 4 years ago
parent
commit
78f0d2d1d6
1 changed files with 0 additions and 3 deletions
  1. 0 3
      scene/2d/physics_body_2d.cpp

+ 0 - 3
scene/2d/physics_body_2d.cpp

@@ -1187,9 +1187,6 @@ void CharacterBody2D::move_and_slide() {
 }
 
 void CharacterBody2D::_set_collision_direction(const PhysicsServer2D::MotionResult &p_result) {
-	on_floor = false;
-	on_ceiling = false;
-	on_wall = false;
 	if (up_direction == Vector2()) {
 		//all is a wall
 		on_wall = true;