rigidbody unity adding force code example
Example 1: unity rigidbody addforce
rb = GetComponent<Rigidbody>();
rb.AddForce(new Vector3(1.5f,1.5f,1.5f));
Example 2: set force rigidbody
rigidbody.AddForce( transform.up * jumpForce, ForceMode.Impulse );