From 1d5a01d12d17fb61dc053ce96f830355ef980585 Mon Sep 17 00:00:00 2001 From: fabriceci Date: Thu, 12 Aug 2021 12:23:17 +0200 Subject: [PATCH] Fix regression by allowing multiple collision direction --- scene/3d/physics_body.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index 8fb5b01aa9c..07bd2f4f65c 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -1210,9 +1210,6 @@ Vector3 KinematicBody::move_and_slide_with_snap(const Vector3 &p_linear_velocity } void KinematicBody::_set_collision_direction(const Collision &p_collision, const Vector3 &p_up_direction, float p_floor_max_angle) { - on_floor = false; - on_ceiling = false; - on_wall = false; if (p_up_direction == Vector3()) { //all is a wall on_wall = true;