A header struct which contains colliding bodies.
This struct contains an array of ContactPairs that can be retrieved with the GetContactPair method.
| Property | Description |
|---|---|
| Body | The first Rigidbody or ArticulationBody in the pair. |
| BodyInstanceID | Instance ID of the first Rigidbody or the ArticualtionBody in the pair. |
| OtherBody | The second Rigidbody or ArticulationBody in the pair. |
| OtherBodyInstanceID | Instance ID of the second Rigidbody or the ArticualtionBody in the pair. |
| PairCount | Number of ContactPairs that this header contains. |
| Method | Description |
|---|---|
| GetContactPair | Gets the ContactPair at index of this pair header. |