protected GetContactInformation ( int index, ContactInformation &info ) : void | ||
index | int | |
info | ContactInformation | |
return | void |
protected internal override void GetContactInformation(int index, out ContactInformation info)
{
foreach (CollidablePairHandler pair in subPairs.Values)
{
int count = pair.Contacts.Count;
if (index - count < 0)
{
pair.GetContactInformation(index, out info);
return;
}
index -= count;
}
throw new IndexOutOfRangeException("Contact index is not present in the pair.");
}