Merge pull request #59297 from fabriceci/fix-jitter-2D-slight-slope
This commit is contained in:
commit
a817bd96c0
4 changed files with 15 additions and 14 deletions
|
|
@ -1565,8 +1565,8 @@ void CharacterBody3D::_move_and_slide_floating(double p_delta) {
|
|||
}
|
||||
}
|
||||
|
||||
void CharacterBody3D::_snap_on_floor(bool was_on_floor, bool vel_dir_facing_up) {
|
||||
if (collision_state.floor || !was_on_floor || vel_dir_facing_up) {
|
||||
void CharacterBody3D::_snap_on_floor(bool p_was_on_floor, bool p_vel_dir_facing_up) {
|
||||
if (collision_state.floor || !p_was_on_floor || p_vel_dir_facing_up) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1600,8 +1600,8 @@ void CharacterBody3D::_snap_on_floor(bool was_on_floor, bool vel_dir_facing_up)
|
|||
}
|
||||
}
|
||||
|
||||
bool CharacterBody3D::_on_floor_if_snapped(bool was_on_floor, bool vel_dir_facing_up) {
|
||||
if (up_direction == Vector3() || collision_state.floor || !was_on_floor || vel_dir_facing_up) {
|
||||
bool CharacterBody3D::_on_floor_if_snapped(bool p_was_on_floor, bool p_vel_dir_facing_up) {
|
||||
if (up_direction == Vector3() || collision_state.floor || !p_was_on_floor || p_vel_dir_facing_up) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue