Parabolic Eliptical orbit....no gravity...math help?
This isn't a hard question but I can't seem to lay out how to use 't' in my head. What I'm trying to do is create a uniform flight path (oval, not a circle) where after reaching the target (mid point of flight) the projectile continues along its orbit back to point of origin.
I think there's 2 ways to do this, either calculating the parabola to the mid point and then inverting it for the return, or calculating the parabolic ellipse. At this point I'm trying to do the ellipse.
Here's a site with some good background math: http://www.mathopenref.com/coordparamellipse.html
The equation of a parabolic ellipse is:
x = a Cos t
y = b Sin t
a = radius from mid point to extreme point of curve along x-axis
b = distince from mid point to origin along the y-axis
t = a number ranging from 0 to 2pi radians
The a and b are easy enough to figure out; a is the width I want the projectile to swing, and b is equal to ((origin_y - destination_y)/2). 'T' just pisses me off ;) I'm afraid to ask how much harder this will be if the origin and destination are on an angle other than 90-degrees too X)
I can do the equation for a parabola no problem but the ellipse is killing me. I'm not even using gravity here! Help?