기술 자료

Unity Engine

Unity Engine

otherRigidbody

The other Rigidbody2D involved in the collision with the Collision2D.rigidbody.
읽는 시간 1분최근 업데이트: 22일 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Rigidbody2D otherRigidbody { get; }

Remarks

This may be null if the Collision2D.otherCollider is not attached to a Rigidbody2D.
Additional Resources: Collider2D, Rigidbody2D