generated at
GameObject.GetComponent
public Component GetComponent (Type type)
>ゲームオブジェクトに type がアタッチされている場合は type のタイプを使用してコンポーネントを返します。ない場合は null です
https://docs.unity3d.com/Manual/class-GameObject.html Accessing componentsセクションに詳しい解説がある
c#
// Assigns the player ball's rigidbody instance to the variable rb = GetComponent<Rigidbody>();
今回の場合はこのRigidbody componentを取得している