bevy_xpbd
bevy_xpbd copied to clipboard
add `IgnoredCollisions` component
trafficstars
Objective
Allow to set ignored collisions per entity.
Solution
Added an IgnoredCollisions component which is checked in the broad phase to filter out ignored collisions before any detection checks.
Changelog
Added
Added an IgnoredCollisions component which can be added to entities with a Collider to configure a set of entities with which there will be no collision detection with the owning entity.
~~Looks like something is still missing here - when the entities with ignored collisions are overlapping on spawn they still "explode"~~
Nvm, it was something else (I was using a joint at a different local anchor from the starting position)