Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


thisRigidbody

The Rigidbody of the collider of the GameObject which received the Collision event (Read Only).
Read time 1 minuteLast updated 7 days ago

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
.