Quantcast
Channel: Answers for "Make a rigidbody Jump (global up)"
Browsing latest articles
Browse All 7 View Live

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 Article



Answer 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 Article

Answer 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
Browsing latest articles
Browse All 7 View Live


Latest Images