smooth motion

Hey there!

What im trying to do is make this object move down to a certain distance smoothly, i have got it going the correct distance but it just jumps there now, how could i fix this?

Thanks!

while (i <= 5){ i = i + 1; trans = -1; transform.Translate (0, trans,0); }

Take a look at the reference for the function Vector3.Lerp.

There is a good example.