Fix move and slide regression by allowing multiple collision direction

This commit is contained in:
fabriceci 2021-08-12 12:42:17 +02:00
parent 2eb3c9580f
commit ce52d3e7b5

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;