The ConstantForce attached to this GameObject (Read Only). (Null if there is none attached).
Obsolete. Use GetComponent<ConstantForce>() instead.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { GetComponent<ConstantForce>().relativeForce = new Vector3(0, 0, 1); } }