The Rigidbody attached to this GameObject (Read Only). (Null if there is none attached).
// Access the Rigidbody by using the attached version var other : GameObject; var rb = other.GetComponent.<Rigidbody>(); rb.AddForce(1,1,1);
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public GameObject other; public Rigidbody rb = other.GetComponent<Rigidbody>(); void Example() { rb.AddForce(1, 1, 1); } }