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 collider scale for child rigid bodies #375

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Fix collider scale for child rigid bodies #375

merged 2 commits into from
Jun 18, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jun 18, 2024

Objective

As noted by @janhohenheim on Discord, if you have a hierarchy like this:

  • Root entity
    • RigidBody and Collider
      • ...

The root entity's scale is not correctly propagated to the rigid body and its colliders.

Solution

Take the scales of the ancestors into account for child rigid bodies in the propagate_collider_transforms system.

@Jondolf Jondolf added the bugfix label Jun 18, 2024
@Jondolf Jondolf merged commit dae903b into main Jun 18, 2024
4 checks passed
@Jondolf Jondolf deleted the fix-child-rb-scale branch June 18, 2024 14:19
@Jondolf Jondolf added C-Bug Something isn't working and removed bugfix labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant