Method SetCollisionFilter
SetCollisionFilter(CollisionFilter)
Sets the collision filter. In case of a CompoundCollider sets the root filter.
Declaration
public void SetCollisionFilter(CollisionFilter filter)
Parameters
Type | Name | Description |
---|---|---|
CollisionFilter | filter | Specifies the filter. |
SetCollisionFilter(CollisionFilter, ColliderKey)
Sets the collision filter of a child specified by the collider key. Collider key is only read in case of CompoundCollider, otherwise it is ignored and will behave as SetCollisionFilter(CollisionFilter)
Declaration
public void SetCollisionFilter(CollisionFilter filter, ColliderKey colliderKey)
Parameters
Type | Name | Description |
---|---|---|
CollisionFilter | filter | Specifies the filter. |
ColliderKey | colliderKey | The collider key. |