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

Rotation along plane fails unless collider has non-zero volume #166

Open
SUPERCILEX opened this issue May 4, 2022 · 1 comment
Open

Comments

@SUPERCILEX
Copy link
Contributor

If you create and object perpendicular to the z axis and rotate it around x or y 180 degrees to mirror it (Quat::from_rotation_x(PI)), attached colliders stop working if they are flat. For example, this collider breaks: Collider::cuboid(0.5, 0.5, 0.). But this one does not: Collider::cuboid(0.5, 0.5, 0.1).

@sebcrozet
Copy link
Member

Hi! Degenerate 3D shapes with zero volume are a very untested territory right now (both in rapier and parry itself). So I would suggest either giving a small thickness, or switching to bevy_rapier2d.

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

No branches or pull requests

2 participants