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