bevy_xpbd
bevy_xpbd copied to clipboard
Easier access to contact normals?
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?