unity rigidbody set force code example Example: set force rigidbody rigidbody.AddForce( transform.up * jumpForce, ForceMode.Impulse );