Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

RaycastHit2D.rigidbody

public Rigidbody2D rigidbody;

Description

The Rigidbody2D attached to the object that was hit.

See Also: Rigidbody2D class.

Did you find this page useful? Please give it a rating: