x


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

more ▼

asked Sep 08 '11 at 01:26 AM

Techsuport gravatar image

Techsuport
81 6 6 10

been finding a matrices method, but i have no experience using a matrix in unity(any programing). Ill to inverse a 3x3 matrix for the math.. help plz

Sep 08 '11 at 05:37 AM Techsuport
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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).

more ▼

answered Sep 08 '11 at 01:29 AM

testure gravatar image

testure
4.2k 20 25 48

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.

Sep 08 '11 at 01:34 AM testure

yeah.. not paying for that ish..

and im going for accuracy in my math..

Sep 08 '11 at 05:33 AM Techsuport

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.

Sep 08 '11 at 05:41 AM testure

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

Sep 08 '11 at 05:52 AM Techsuport
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1880
x1372
x886
x208
x82

asked: Sep 08 '11 at 01:26 AM

Seen: 1132 times

Last Updated: Sep 08 '11 at 05:52 AM