Collision details returned by 2D physics callback functions.
The collisions details are returned by MonoBehaviour.OnCollisionEnter2D, MonoBehaviour.OnCollisionStay2D and MonoBehaviour.OnCollisionExit2D callbacks. It details which Collider2D and Rigidbody2D pairs are involved in the collision as well as contact points where the Collider2D meet.
collider | The incoming Collider2D involved in the collision with the otherCollider. |
contacts | Los puntos específicos de contacto con el Collider2D entrante. |
enabled | Indicates whether the collision response or reaction is enabled or disabled. |
gameObject | El GameObject entrante involucrado en la colisión. |
otherCollider | The other Collider2D involved in the collision with the collider. |
otherRigidbody | The other Rigidbody2D involved in the collision with the rigidbody. |
relativeVelocity | La velocidad lineal relativa de los dos objetos que colisionan (Read Only). |
rigidbody | The incoming Rigidbody2D involved in the collision with the otherRigidbody. |
transform | El Transform del objeto entrante involucrado en la colisión. |