struct in UnityEngine
/
Implemented in:UnityEngine.PhysicsModule
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseA header struct which contains colliding bodies.
This struct contains an array of ContactPairs that can be retrieved with the GetContactPair method.
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. |
GetContactPair | Gets the ContactPair at index of this pair header. |