Describe una colisión.
Collision information is passed to Collider.OnCollisionEnter, Collider.OnCollisionStay and Collider.OnCollisionExit events.
Note: The contact points are in world-space.
See Also: ContactPoint.
| collider | El Collider con el que chocamos (Read Only). |
| contactCount | Gets the number of contacts for this collision. |
| contacts | The contact points generated by the physics engine. You should avoid using this as it produces memory garbage. Use GetContact or GetContacts instead. |
| gameObject | The GameObject whose collider you are colliding with. (Read Only). |
| impulse | El impulso total aplicado a este par de contacto para resolver la colisión. |
| relativeVelocity | La velocidad lineal relativa de los dos objetos que colisionan (Read Only). |
| rigidbody | El Rigidbody con el que chocamos (Read Only). Toma valor null si el objeto con el que chocamos es un Collider sin un Rigidbody ligado a él. |
| transform | El Transform del objeto con el que chocamos (Read Only). |
| GetContact | Gets the contact point at the specified index. |
| GetContacts | Retrieves all contact points for this collision. |