ドキュメント

Unity Engine

Unity Engine

thisRigidbody

The Rigidbody of the collider of the GameObject which received the Collision event (Read Only).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public Rigidbody thisRigidbody { get; }

Remarks

The Rigidbody of the collider of the GameObject which received the Collision event. If there is no Rigidbody component attached, this returns
null
.