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 2D center of mass not updated from transform #54011

Merged

Conversation

pouleyKetchoupp
Copy link
Contributor

@pouleyKetchoupp pouleyKetchoupp commented Oct 19, 2021

Same logic as what was done in 3D, applied to 2D center of mass (missed in #49610).

Also did some minor cleanup in 3D and fixed center of mass transform during the first frame after teleporting a dynamic body.

Fixes #53875

Same logic as what was done in 3D, applied to 2D center of mass.

Also did some minor cleanup in 3D and fixed center of mass transform
during the first frame after teleporting a dynamic body.
@akien-mga akien-mga merged commit 194b728 into godotengine:master Oct 21, 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.

RigidDynamicBody2D custom center of mass doesn't move when the body rotates
2 participants