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 shapes translated not having correct center of mass and inertia #133

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

Ughuuu
Copy link
Contributor

@Ughuuu Ughuuu commented Jul 2, 2024

In Godot center of mass, inertia and mass is per the whole body, not per shape.
In Rapier it is per shape. Instead calculate the shape's mass and inertia in Rapier and multiply such that the whole mass equals the one of the body.
Limitations:
Doesn't support center of body change, since we work with center of shapes.

@Ughuuu Ughuuu merged commit 1ee2b64 into main Jul 2, 2024
29 checks passed
@Ughuuu Ughuuu deleted the fix-joint-scaling-issue branch July 3, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant