Skip to content

Commit

Permalink
Merge pull request #90915 from rburing/no_more_speedrun
Browse files Browse the repository at this point in the history
Fix `move_and_slide` wall slide acceleration (3D)
  • Loading branch information
akien-mga committed Apr 25, 2024
2 parents e0f58a3 + 80c600d commit f819c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/physics/character_body_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void CharacterBody3D::_move_and_slide_grounded(double p_delta, bool p_was_on_flo
} else {
// Travel is too high to be safely canceled, we take it into account.
result.travel = result.travel.slide(up_direction);
motion = motion.normalized() * result.travel.length();
motion = result.remainder;
}
set_global_transform(gt);
// Determines if you are on the ground, and limits the possibility of climbing on the walls because of the approximations.
Expand Down

0 comments on commit f819c77

Please sign in to comment.