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

[3.x] Backport new methods for KinematicBody and KinematicCollision #52116

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

timothyqiu
Copy link
Member

This PR backports new helper methods introduced in #51645 on master.

For both 2D and 3D, three methods are added:

  • get_floor_angle on KinematicBody to get the floor angle.
  • get_angle on KinematicCollision to get the collision angle.
  • get_last_slide_collision to quickly get the latest collision of move_and_slide.

For both 2D and 3D, three methods are added:

- `get_floor_angle` on `KinematicBody` to get the floor angle.
- `get_angle` on `KinematicCollision` to get the collision angle.
- `get_last_slide_collision` to quickly get the latest collision of `move_and_slide`.
@timothyqiu timothyqiu added this to the 3.4 milestone Aug 26, 2021
@timothyqiu timothyqiu requested review from a team as code owners August 26, 2021 04:36
@pouleyKetchoupp pouleyKetchoupp requested a review from a team August 26, 2021 17:56
Copy link
Contributor

@pouleyKetchoupp pouleyKetchoupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good idea, thanks!

@pouleyKetchoupp pouleyKetchoupp merged commit 7f15432 into godotengine:3.x Aug 26, 2021
@timothyqiu timothyqiu deleted the new-kinematic-methods branch August 26, 2021 23:47
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.

2 participants