bevy_mod_raycast icon indicating copy to clipboard operation
bevy_mod_raycast copied to clipboard

Expose mesh indices in intersection data

Open Dig-Doug opened this issue 2 years ago • 4 comments

Note: I also ran cargo fmt, which reformatted src/primitives.rs since it used carriage returns.

Dig-Doug avatar May 02 '23 11:05 Dig-Doug

Hi @aevyrie, is this PR something you'd consider accepting?

Dig-Doug avatar May 22 '23 12:05 Dig-Doug

Yes, but I need some free time to review this. I'm not sure how much data we should stuff in this struct, or just return the indices and make the user look up things like vertex positions and normals.

aevyrie avatar May 22 '23 23:05 aevyrie

No problem. I'm using this data in tandem with bevy_mod_picking. I was looking at the other backends and saw that rapier exposes the data using a struct called feature id.

Maybe we could figure out the best way to expose the intersection data from rapier in the HitData and then work backwards for this backend?

Dig-Doug avatar May 24 '23 12:05 Dig-Doug

Just saw this PR. I have opened a similar PR which exposes just the indices. See: #107

brookman avatar Dec 25 '23 19:12 brookman

Closed in favor of #103.

aevyrie avatar Feb 18 '24 05:02 aevyrie