I have a problem and I’m not smart enough to work out a solutions. Plus a company delivered my item to the wrong door and say its my fault…? so a bit stressed!!!

anyway,

I want to achieve a throw, a bomb between two points, and so it travels as an art from point A, to point B.

My idea was:
Use half a circle, but cant even seem to get circle right today,
Then just stop after 180 deg… (or the degrees between the points, which I didnt work out yet?)
The points are not on a 180Deg plane. but one may be higher than the other.

…Make a circle…which is playing up?! I cant even get that right! I thought maybe the coords system? .

UNITY x, y are x, y
my coords are ( 0, 0 ) is top left. (helps for my tiles mapping)…

This is what I have been playing with for hours, ,

Rather than use a circle, how about some simple particle physics? Let’s imagine the object starts of at t =0 at the origin and this is point A (it could really be anywhere, just apply the translation you need), similarly we’ll imagine that the point B is aligned along the x axis (a rotation will make this true, so we’re not losing this by picking a coordinate system). If the vector AB is a horizontal distance, d, away from the object and we throw it such that its horizontal speed is v_h then it will have reached the spot B (or its horizontal position) at a time

t = d / v_h

Ok. So we should throw it with an initial vertical velocity v_v, chosen such that it is magically at the right elevation at that moment. Let the difference in height between A and B be equal to h and the acceleration due to gravity be g. Measuring from A’s position the height at time t will be:

s = v_v. t - 0.5. g . t^2

Rearranging a bit:

v_v = (0.5.g.t^2 + s) / t

Since we’ve already figured out how much time we have available to us for this arc, we’ve now calculated what the initial velocity should be. Back in the land of code, if we maintain a timer then we can use this to drive the bomb along this curve.

A few clarifications on my notation:

When I use an underscore, it should be read as an subscript, so ‘v_v’ is a shorthand for ‘vertical velocity’

The caret ‘^’ should be read as a superscript or power, so t^2 is t squared (t * t)

‘s’ is a distance, in the context of the final formula it should be interpreted as a vertical distance that the object is moving through.

‘g’ is acceleration due to gravity in the downward direction, so for objects moving in an earth-like environment a value of 9.8 m/s^2 would be fine.

for normalised distance: distance x= 0 to 1, height y= 0 to 1

rising half x(0to0.5): y = (x2)/(x2) because for (0 to 1)/(0 to 1) is an a rising arc

falling half the same in reverse. when object gets half way, change formula from first to second. perfect parabol. or just look for parabola also and strech one out and reverse it:

and you could easily adapt the 3rd parabola on this page, simply move it forwards by one space and multiply will divide the height by an amount required and the distance also.

for normalised distance: distance x= 0 to 1, height y= 0 to 1

rising half x(0to0.5): y = (x2)/(x2) because for (0 to 1)/(0 to 1) is an a rising arc

falling half the same in reverse. when object gets half way, change formula from first to second. perfect parabol. or just look for parabola also and strech one out and reverse it:

Okay square root is not ideal for an arc, but it’s good to know to shape control signals, probabilities of monsters appearing, distance to speed variables etc