class in UnityEngineマニュアルに切り替える
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||The specific points of contact with the incoming Collider2D. You should avoid using this as it produces memory garbage. Use GetContacts instead.|
|enabled||Indicates whether the collision response or reaction is enabled or disabled.|
|otherCollider||The other Collider2D involved in the collision with the collider.|
|otherRigidbody||The other Rigidbody2D involved in the collision with the rigidbody.|
|relativeVelocity||衝突した 2 つのオブジェクトの相対的な速度（読み取り専用）|
|rigidbody||The incoming Rigidbody2D involved in the collision with the otherRigidbody.|
|GetContacts||Retrieves all contact points in for contacts between collider and otherCollider.|