Answer by syclamoth
First off, put that in FixedUpdate. Otherwise, try using this- rigidbody.AddForce(new Vector3(0, 100, 0), ForceMode.Impulse); It's possible that you just aren't seeing anything because the force is too...
View ArticleAnswer by aldonaletto
The easiest way is to set the rigidbody.velocity directly (you will not depend on the object mass): var jumpSpeed: float = 8; function Update(){ if (Input.GetKeyDown (KeyCode.Space)){...
View ArticleAnswer by XenoTracker
Apparently this is the new AddForce thing Public float jumpSpeed = 5f;//or whatever you want it to be public Rigidbody rb; //and again, whatever you want to call it void Start (){ rb = GetComponent ();...
View Article