Skip to content

Picking groups or filtering #22221

@djeedai

Description

@djeedai

What problem does this solve or what need does it fill?

I have some overlapping picking meshes, which form 2 separate sets for selection. One set is active at a time, depending on the application state. Think "select an object" vs. "select a part of an object". I don't see currently a way to handle that; picking selection just flickers between one or the other since they're both active (all meshes are picked). Note I already use Pickable, because most mesh are for rendering and not picking.

What solution would you like?

Disjoint sets of picking, like groups. Allow enabling and disabling picking on some meshes without having to spawn/despawn components.

What alternative(s) have you considered?

Spawn/despawn components or entities. This is a lot more work and manual bookkeeping.

Additional context

I believe some of the third-party crates used to have that. Can't remember on top of my head which one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PickingPointing at and selecting objects of all sortsC-FeatureA new feature, making something new possibleC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions