Documentation

Unity Engine

Unity Engine

thisBody

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

Definition

public Component thisBody { get; }

Remarks

The Rigidbody or ArticulationBody of the collider that received the Collision event. If the collider doesn't have a rigid or articulation body attached, this returns
null
.