collider
The incoming Collider2D involved in the collision with the ContactPoint2D.otherCollider.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Collider2D collider { get; }
Remarks
This collider is attached to the Collision2D.rigidbody.
Additional Resources: Collider2D and Rigidbody2D.