addforce vertical unity code example
Example 1: rb.addforce c#
rb.AddForce(0, 0, 5 * Time.deltaTime);
// Time.deltaTime is optional ( Make sure that "T" is caps)
Example 2: rb.addforce 3d c#
rb.AddForce(0, 0, 5 * time.deltaTime);
// time.deltaTime is optional