Namespace: UnityEngine
Information returned by a collision in 2D physics.
由2D物理碰撞返回的信息。
collider | The incoming Collider2D involved in the collision. 传入Collider2D参与碰撞。 |
contacts | The specific points of contact with the incoming Collider2D. 与传入的Collider2D接触点。 |
gameObject | The incoming GameObject involved in the collision. 传入的GameObject参与碰撞 。 |
relativeVelocity | The relative linear velocity of the two colliding objects (Read Only). 两个碰撞对象的相对线速度(只读)。 |
rigidbody | The incoming Rigidbody2D involved in the collision. 传入的Rigidbody2D参与碰撞。 |
transform | The Transform of the incoming object involved in the collision. 传入的对象变换参与碰撞。 |