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:
commit
1a9c8aaba9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue