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] Fix applied rotation from moving platforms in move_and_slide #51447

Merged

Conversation

pouleyKetchoupp
Copy link
Contributor

When synchronizing KinematicBody motion with moving the platform using direct body state, only the linear velocity was taken into account.

This change exposes velocity at local point in direct body state and uses it in move_and_slide to get the proper velocity that includes rotations.

Backport of #51446 on 3.x
Fixes #51047 on 3.x (regression from #49446).

When synchronizing KinematicBody motion with moving the platform using
direct body state, only the linear velocity was taken into account.

This change exposes velocity at local point in direct body state and
uses it in move_and_slide to get the proper velocity that includes
rotations.
@pouleyKetchoupp pouleyKetchoupp added this to the 3.4 milestone Aug 9, 2021
@pouleyKetchoupp pouleyKetchoupp requested a review from a team August 9, 2021 19:20
@pouleyKetchoupp pouleyKetchoupp requested review from a team as code owners August 9, 2021 19:20
@akien-mga akien-mga merged commit 0403cb8 into godotengine:3.x Aug 9, 2021
@akien-mga
Copy link
Member

Thanks!

@pouleyKetchoupp pouleyKetchoupp deleted the fix-moving-platform-rotation-3.x branch August 10, 2021 00:01
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