bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

add `IgnoredCollisions` component

Open exoexo-dev opened this issue 1 year ago • 1 comments
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.

exoexo-dev avatar May 17 '24 15:05 exoexo-dev

~~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)

exoexo-dev avatar May 18 '24 12:05 exoexo-dev