GetComponent Rigidbody2d

(GameObjectName) = GetComponent<Rigidbody2D>();
Perfect Pintail