getComponent rigidbody2d

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