Method GetCollisionFilter
GetCollisionFilter()
Get the collision filter. In case of a CompoundCollider, returns the root filter.
Declaration
public CollisionFilter GetCollisionFilter()
Returns
Type | Description |
---|---|
CollisionFilter | The collision filter. |
Implements
GetCollisionFilter(ColliderKey)
Gets the collision filter specified by the collider key. The key is only read in case the collider is CompoundCollider, otherwise it is ignored and will behave as GetCollisionFilter().
Declaration
public CollisionFilter GetCollisionFilter(ColliderKey colliderKey)
Parameters
Type | Name | Description |
---|---|---|
ColliderKey | colliderKey | The collider key. |
Returns
Type | Description |
---|---|
CollisionFilter | The collision filter. |