bevy_rapier icon indicating copy to clipboard operation
bevy_rapier copied to clipboard

Rotation along plane fails unless collider has non-zero volume

Open SUPERCILEX opened this issue 3 years ago • 1 comments

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).

SUPERCILEX avatar May 04 '22 18:05 SUPERCILEX

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.

sebcrozet avatar May 04 '22 21:05 sebcrozet