Documentation

Unity Engine

Unity Engine

thisRigidbody

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

Definition

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
.