Floating objects

I am trying create some objects floating from the bottom of the screen to the top. Is the AddForce function the best to use? How should I go about doing this?

Here’s something I use in FixedUpdate to make objects resist gravity:

_rigidbody.AddForce(Physics.gravity * _rigidbody.mass * -1 * x);

In this case, if “x” is 1, the object should behave as if not affected by gravity at all (the force of gravity and the upward force will be equal). If 0 < x < 1, the object will fall more slowly than normal. If x > 1, the object will “fall” up. Note that it won’t move up at a constant speed: it will accelerate upwards as though gravity on that object were reverse (but weaker).

_rigidbody.AddForce(Physics.gravity * -1 * x, ForceMode.Acceleration);

:stuck_out_tongue: