- Home /
Find Quadratic Equation From 3 points for Jump
I haven't found anything strait forward and useful anywhere so far, and thorough i should ask here so others can see an answer for this too (Hopefully soon)
I am trying to do jumping from joint to point with tight arch control. What I want to do is pick a landing point, and a height, and have the object jump through the arch defined by the current position (A), the target position (B), and (C) the point between A and B with some height.
-How do you find the quadratic for 3 points in 3d space?
This looks promising but haven't tried it and later in the comments says there is an error in the finder for b and c
THIS looks promising.. link didnt work http://www.physicsforums.com/showthread.php?s=ba68cf51c05bb3bf2f8105104638e812&t=404174&page=2
been finding a matrices method, but i have no experience using a matrix in unity(any progra$$anonymous$$g). Ill to inverse a 3x3 matrix for the math.. help plz
Answer by testure · Sep 08, 2011 at 01:29 AM
http://itween.pixelplacement.com/examples.php
check out the 'accurate lob' example, it does exactly what you're talking about (though it does not use a rigid body, don't know if that's a requirement for you or not).
also, if you're not hellbent on using physics to do the job- it could be as simple as a little vector math with smooth interpolation.
you have your starting point and end point
you know what you want your peak jump height to be, and using 'fakey physics' you could just put the peak of the jump dead center of the arc. Getting the X and Z for the midpoint is pretty straightforward vector math.
interpolate your position from the start to the mid point, and then from the midpoint to the endpoint.
boom, accurate arc.. no physics necessary.
yeah.. not paying for that ish..
and im going for accuracy in my math..
so are you making a simulation or a game? I mean, do whatever you want- I just have a feeling that you're way over thinking a very simple problem.
im actually doing a rerunning game, but this is for calculating the arch of a long ranged jump. even if i was over thinking it i dont like questions unanswered.. and i think i have a solution, but i have to do some manual math with matrices cause i dont know how to use matrices in unity
Your answer
![](https://koobas.hobune.stream/wayback/20220612204514im_/https://answers.unity.com/themes/thub/images/avi.jpg)