Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


otherCollider

The other Collider2D involved in the collision with the _collider.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Collider2D otherCollider { get; }

Remarks

This collider is attached to the _otherRigidbody.
Additional Resources: Collider2D, Rigidbody2D