rigidbody
The incoming Rigidbody2D involved in the collision with the _otherRigidbody.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Rigidbody2D rigidbody { get; }
Remarks
This may be null if the _collider is not attached to a Rigidbody2D.
Additional Resources: Collider2D, Rigidbody2D