BaseItem.physics.add_to_collision_filter method

add_to_collision_filter(self, item: BaseItem) -> None:

Adds collision filter to target item to ignore collisions, even when this item shares the same collision layer.

Parameters

  • item: BaseItem

    item to add to collision filter