bevy_vello icon indicating copy to clipboard operation
bevy_vello copied to clipboard

Mouse picking

Open nuzzles opened this issue 1 year ago • 3 comments

Mouse picking became a first class citizen in bevy 0.15.

Would be good to add picking for bevy assets.

nuzzles avatar Dec 13 '24 03:12 nuzzles

I'm still new to picking in bevy. Do you know if bevy natively support picking for AABB components? We just added those with view culling, so it may make sense these double as hit-boxes for picking @RobertBrewitz .

nuzzles avatar May 31 '25 15:05 nuzzles

It does not look like they double as hit boxes for picking, bevy_picking seem to only uses Aabb for a view culling query.

But implementing a picking backend is fairly simple for bevy_vello assets.

RobertBrewitz avatar May 31 '25 19:05 RobertBrewitz

Started a prototype here https://github.com/linebender/bevy_vello/pull/160

It adds a new VelloPicking component that is pickable, it takes a BezPath and an Affine.

RobertBrewitz avatar Jun 12 '25 18:06 RobertBrewitz

There is a tenative PR to solve this, #188 .

nuzzles avatar Dec 07 '25 19:12 nuzzles