diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-12 20:37:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 20:37:30 +0200 |
commit | 1a9c8aaba9214dbed40c2c58adce724e1b7b8276 (patch) | |
tree | b8ea723e7ab8648dfa76fc665696e0aa0d159a70 | |
parent | 244295a0c2bfc49b927601e236a4a286dda82f56 (diff) | |
parent | ce52d3e7b5541baf9969caeba1231658f931907b (diff) |
Merge pull request #51558 from fabriceci/fix-move-and-slide-regression-multiple-collision-4
Fix move and slide regression by allowing multiple collision direction
-rw-r--r-- | scene/3d/physics_body_3d.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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; |