Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistency in KinematicBody #23090

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

DavidSichma
Copy link
Contributor

  • moved new infinite_inertia argument of move_and_slide and move_and_slide_with_snap in KinematicBody and KinematicBody2D to the end if not already there. This is basically Fixes #19648 Kinematic body move_and_slide compatibility issue #19884 for every other method.
    This makes the order of arguments consistent and should keep projects from 3.0 compatible as this argument did not exist in 3.0. Docs updated accordingly.
    Note: This can break compatibility with current projects.
  • renamed max_bounces to max_slides for consistency. Docs updated accordingly.
  • the argument infinite_inertia in test_move is now optional as in every other movement related method. This closes test_move() asking for 3 arguments with KinematicBody2D. #22829.

- moved new infinite_inertia argument of move_and_slide and
move_and_slide_with_snap in KinematicBody and KinematicBody2D to the
end if not already there. This makes the order of arguments consistent
and should keep projects from 3.0 compatible as this argument did not
exist in 3.0. Docs updated accordingly.
- renamed max_bounces to max_slides for consistency. Docs updated
accordingly.
- the argument infinite_inertia in test_move is now optional, as it is
in every other movement related method. This closes godotengine#22829.
@akien-mga akien-mga added this to the 3.1 milestone Oct 17, 2018
@akien-mga akien-mga merged commit 2815e70 into godotengine:master Nov 12, 2018
@akien-mga
Copy link
Member

Thanks!

@DavidSichma DavidSichma deleted the inconsistent-kinematic branch November 24, 2018 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_move() asking for 3 arguments with KinematicBody2D.
2 participants