衝突したオブジェクトの情報を扱います。
Collision information is passed to Collider.OnCollisionEnter, Collider.OnCollisionStay and Collider.OnCollisionExit events.
Note: The contact points are in world-space.
See Also: ContactPoint.
| articulationBody | The ArticulationBody of the collider that your GameObject collides with (Read Only). |
| body | The Rigidbody or ArticulationBody of the collider that your Component collides with (Read Only). |
| collider | ヒットした Collider 情報を返します(読み取り専用) |
| 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 | 衝突を解消するために互いの接触に適用される合計のインパルス |
| relativeVelocity | 衝突した 2 つのオブジェクトの相対的な速度(読み取り専用) |
| rigidbody | ヒットした Rigidbody (読み取り専用)。ヒットしたオブジェクトに Rigidbody がアタッチされていない場合、null を返します。 |
| transform | ヒットした Transform 情報を返します。(読み取り専用) |
| GetContact | Gets the contact point at the specified index. |
| GetContacts | Retrieves all contact points for this collision. |