Collision .collider | The Collider we hit (Read Only). |
Collision .contactCount | Gets the number of contacts for this collision. |
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. |
Collision .gameObject | The GameObject whose collider you are colliding with. (Read Only). |
Collision .impulse | The total impulse applied to this contact pair to resolve the collision. |
Collision .relativeVelocity | The relative linear velocity of the two colliding objects (Read Only). |
Collision .rigidbody | The Rigidbody we hit (Read Only). This is nil if the object we hit is a collider with no rigidbody attached. |
Collision .transform | The Transform of the object we hit (Read Only). |