Component.constantForcevar constantForce : ConstantForceDescriptionThe ConstantForce attached to this GameObject (null if there is none attached).
JavaScript
constantForce.relativeForce = Vector3(0, 0, 1); using UnityEngine; import UnityEngine |
