Описывает столкновение.
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 | Collider, с которым мы столкнулись (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 | The total impulse applied to this contact pair to resolve the collision. |
| relativeVelocity | Относительная линейная скорость двух столкнувшихся объектов (Read Only). |
| rigidbody | Rigidbody, с которым мы столкнулись (Read Only). Принимает значение null, если объект, с которым мы столкнулись это коллайдер , к которому не присоединен rigidbody. |
| transform | Transform объекта, с которым мы столкнулись (Read Only). |
| GetContact | Gets the contact point at the specified index. |
| GetContacts | Retrieves all contact points for this collision. |