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

Support for quad/rect 2D shape in 3D (or degenerate cuboid)? #461

Open
djeedai opened this issue Dec 12, 2023 · 1 comment
Open

Support for quad/rect 2D shape in 3D (or degenerate cuboid)? #461

djeedai opened this issue Dec 12, 2023 · 1 comment
Labels
A-Geometry A-Integration very bevy specific D-Medium enhancement New feature or request P-Low S-not-started Work has not started

Comments

@djeedai
Copy link

djeedai commented Dec 12, 2023

Hi,

Is it possible to use a degenerate cuboid shape in 3D to simulate a quad/rect 2D shape? That is, setting one half-extent to 0.? By "possible" I mean both whether this works in the first place, and whether this is optimal performance-wise, so handled as a single face instead of a 6-face cube?

Otherwise, what option is there for a quad/rect 2D shape in 3D? I'm surprised this is not supported as built-in given the wide variety of shapes already supported, did I miss something? Should I use a triangle mesh? That feels a bit sub-optimal.

Thanks! :)

@Kanhoto
Copy link

Kanhoto commented Feb 21, 2024

Not sure it's gonna be optimized if you flat a value to 0. But maybe you want something like a "Coumpound shape"
https://docs.rs/bevy_rapier3d/latest/bevy_rapier3d/geometry/struct.Collider.html#

@Vrixyz Vrixyz added enhancement New feature or request D-Medium P-Low A-Geometry A-Integration very bevy specific S-not-started Work has not started labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Geometry A-Integration very bevy specific D-Medium enhancement New feature or request P-Low S-not-started Work has not started
Projects
None yet
Development

No branches or pull requests

3 participants