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 pair of Colliders that belong to the bodies in the parent ContactPairHeader struct.
Contains an array of ContactPairPoints that can be retrieved using the GetContactPoint method.
Collider | The first Collider component of the ContactPair. |
ColliderInstanceID | Instance ID of the first Collider in the ContactPair. |
ContactCount | The number of ContactPairPoints that this pair contains. |
ImpulseSum | Total impulse sum of the pair. |
IsCollisionEnter | Whether or not this pair is equivalent to a pair reported in MonoBehaviour.OnCollisionEnter events. |
IsCollisionExit | Whether or not this pair is equivalent to a pair reported in MonoBehaviour.OnCollisionExit events. |
IsCollisionStay | Whether or not this pair is equivalent to a pair reported in MonoBehaviour.OnCollisionStay events. |
OtherCollider | The second Collider component of the ContactPair. |
OtherColliderInstanceID | Instance ID of the second Collider in the ContactPair. |
CopyToNativeArray | Copies the internal ContactPairPoint buffer to the provided buffer. |
GetContactPoint | Gets the ContactPairPoint at the provided index of this pair. |
GetContactPointFaceIndex | Get the index of a face that a particular contact point belongs to in this ContactPairPoint. |