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 propagation issues #472

Merged
merged 3 commits into from
Jul 28, 2024
Merged

Fix collider scale propagation issues #472

merged 3 commits into from
Jul 28, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jul 28, 2024

Objective

Fixes #287 and part of #471.

Scale is currently not propagated correctly for colliders if the rigid body is not the root entity. Additionally, negative scale is prohibited for child colliders: scale is clamped to be greater than zero.

Solution

Fix scale propagation and allow negative scale.

Note that mirroring is not handled properly for child colliders and some shapes yet. That will be fixed later.

@Jondolf Jondolf added C-Bug Something isn't working A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality labels Jul 28, 2024
@Jondolf Jondolf merged commit 5c2188c into main Jul 28, 2024
4 checks passed
@Jondolf Jondolf deleted the fix-scaling branch July 28, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Negative scale on transforms causes collider to stop detecting collisions.
2 participants