diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-27 19:10:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 19:10:47 +0200 |
commit | 78f0d2d1d66624c729f5887644ea2c69affba7f2 (patch) | |
tree | aad99176d32dc943fb667d6425097ee65df6b4fb | |
parent | ffb519d06a44531e6fe5d468259e10c3dedf0a4a (diff) | |
parent | f45af437847e2ddeb47d87f0792cbace75a3b018 (diff) |
Merge pull request #50905 from fabriceci/fix-multiple-direction-collision
Allow multiple collision direction at the same time
-rw-r--r-- | scene/2d/physics_body_2d.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/2d/physics_body_2d.cpp b/scene/2d/physics_body_2d.cpp index 561207c24c..9b4da2a77a 100644 --- a/scene/2d/physics_body_2d.cpp +++ b/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; |