Method GetCollisionResponse
GetCollisionResponse()
Gets the collision response. In case of a CompoundCollider, this behaves as GetCollisionResponse(ColliderKey) with ColliderKey.Zero passed in.
Declaration
public CollisionResponsePolicy GetCollisionResponse()
Returns
Type | Description |
---|---|
CollisionResponsePolicy | The collision response. |
GetCollisionResponse(ColliderKey)
Gets collision response 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 GetCollisionResponse() . In case of CompoundCollider if the colider key is empty, it will return the collision response of the first child.
Declaration
public CollisionResponsePolicy GetCollisionResponse(ColliderKey colliderKey)
Parameters
Type | Name | Description |
---|---|---|
ColliderKey | colliderKey | The collider key. |
Returns
Type | Description |
---|---|
CollisionResponsePolicy | The collision response. |