Consent Force on Controllable Object

I’m making a forward scrolling ball game and I want the ball to have a constant force of being pushed forward. I’ve seen other codes but they are only for rigidbody objects.

How can I go about making this work? It doesn’t sound like it’d be hard…

Something like:

var forceSpeed = 6.0;
function FixedUpdate() 
{
var forceSpeed = Vector3.up;
}

Or something like this:

var forceSpeed = 6.0;
private var myTransform : Transform;
private var speed : float;

function Start () 
{
myTransform = transform;
speed = forceSpeed ;
var forceSpeed = Vector3.zero;
forceSpeed = myTransform.TransformDirection(forceSpeed) * speed;
}

Anyone???

If your ball isn’t rigidbodied then you have to simulate force by storing a velocity and updating that yourself.

var vel : Vector3;

function Update() {
 transform.position += vel;
 vel += acceleration;
}