Collision2D.GetContact

Declaration

public ContactPoint2D GetContact(int index);

Parameters

index The index of the contact to retrieve.

Returns

ContactPoint2D The contact at the specified index.

Description

Gets the contact point at the specified index.

You can retrieve individual contacts for this collision by index. You can use contactCount to determine how many contacts are available.

Additional resources: contactCount and GetContacts.


Did you find this page useful? Please give it a rating: