Merge pull request #51558 from fabriceci/fix-move-and-slide-regression-multiple-collision-4

Fix move and slide regression by allowing multiple collision direction
This commit is contained in:
Rémi Verschelde 2021-08-12 20:37:30 +02:00 committed by GitHub
commit 1a9c8aaba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;