Comments and answers for "Impulse to reach certain height?"
http://answers.unity.com/questions/321461/impulse-to-reach-certain-height.html
The latest comments and answers for the question "Impulse to reach certain height?"Comment by Nemox on Nemox's answer
http://answers.unity.com/comments/321483/view.html
Thanks a bunch! I tried a few formulas that were really close to that, but I must have screwed up big-time somewhere. This worked like a charm.Sat, 22 Sep 2012 14:57:32 GMTNemoxAnswer by SergeantBiscuits
http://answers.unity.com/answers/321481/view.html
Physics! I love physics.
maxHeight = (initialVelocity^2) / (2g)
Use that formula... in fact, if you solve for initialVelocity, you can make a "jump to height" line. In javascript:
var jumpHeight;
if(Input.GetButtonDown("Jump")){
transform.velocity.y = Mathf.Sqrt(jumpHeight * -2 * physics.gravity.y);
}Sat, 22 Sep 2012 14:49:09 GMTSergeantBiscuitsComment by Fattie
http://answers.unity.com/comments/321465/view.html
this is more of a physics question. you could get an answer on stackexchange in 2 $$anonymous$$utes!
simply search to wikipedia's "projectile equations" page and you will almost certainly instantly find the answerSat, 22 Sep 2012 13:56:29 GMTFattie