getcomponent rigidbody 3d unity code example
Example: get rigidbody component unity
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}