bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

Easier access to contact normals?

Open johanhelsing opened this issue 7 months ago • 1 comments

Getting contact normals is important for a number of reason.

In my case, I want to apply an impulse on contact and spawn a particle effect.

As far as I understand, the only way to get to normals is through Collision event. However, I'm very interested to only get contacts in the initial contact, but normals are not included in the CollisionStarted events. That means I'd have to track the currently colliding entities myself.

I'm thinking that contact manifolds should probably be added to the CollisionStarted event, and it would probably be added to the CollidingEntities component as well?

Asking here since there might be a way that I've overlooked?

johanhelsing avatar Nov 10 '23 08:11 johanhelsing