Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RaycastHit2D.rigidbody

Switch to Manual
public var rigidbody: Rigidbody2D;

Description

The Rigidbody2D attached to the object that was hit.

See Also: Rigidbody2D class.