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

Fix applied rotation from moving platforms in move_and_slide #51446

Merged

Conversation

pouleyKetchoupp
Copy link
Contributor

When synchronizing CharacterBody 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.

Fixes #51047 on master (regression from #49328).

When synchronizing CharacterBody 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 force-pushed the fix-moving-platform-rotation branch from b6de713 to 5650c83 Compare August 9, 2021 19:30
@akien-mga akien-mga merged commit 2de5d23 into godotengine:master Aug 9, 2021
@akien-mga
Copy link
Member

Thanks!

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.

[v3.4.beta2] Player don’t rotate along/with 3D rotating platform
2 participants