ドキュメント

Unity Engine

Unity Engine

otherCollider

The other Collider2D involved in the collision with the ContactPoint2D.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.