Component.constantForce

var constantForce : ConstantForce

Description

The ConstantForce attached to this GameObject (null if there is none attached).

JavaScript
constantForce.relativeForce = Vector3(0, 0, 1);