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