dimforge / dimforge/bevy_rapier

Negative collider sizes silently fail

Open
#681 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

So, I was trying to apply a bunch of colliders based on a constructor (in blender coordinates) to bevy entities, and converted the sizes using some math someone else gave me, but I overlooked that that might cause negative collider sizes.

When you have a collider with a negative size, it just doesnt work, resulting in the later added dynamic rigidbody falling through the floor, and to me being in great confusion.

I only discovered this when I tried to switch to avian3d as a last resort, which has an assertion preventing this.

I propose that rapier add a similar assertion for negative-sized colliders in the constructor so people don't go down that debugging hell (i spent DAYS on this).

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.