In terms of an artillery game what function / formula should I use to supply the "Impulse" and "Angle" for the 'Apply impulse at angle' function. Given that I know the distance between the launch point and the target?

Can I adjust the power and angle values to increase or decrease the projectiles flight time given a fixed horizontal distance? (Make the projectiles peak at higher or lower points in world space!)

So, what is the function that allows me to pass 'time' and 'distance' and have it return 'power' (impulse) and 'angle'?

Cheers

Juba.