Selaa lähdekoodia

Allow to have multiple collision direction at the same time

fabriceci 4 vuotta sitten
vanhempi
commit
f45af43784
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  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;