|
I'm trying to use the formula
from http://en.wikipedia.org/wiki/Trajectory_of_a_projectile to work out the angle required to launch a projectile a known distance with the launch height not being the same as the targets. I'm not sure if I've coded it right because the result seems to be incorrect. Any help is appreciated.
(comments are locked)
|
|
For more reference Check this link below : http://answers.unity3d.com/questions/49195/trajectory-of-a-projectile-formula-does-anyone-kno.html
(comments are locked)
|
|
The inner-most bracket expression says to take g and multiply it by x-squared and then add two times y times v-squared. In your code you are squaring gravity times x and two times y times v.
(comments are locked)
|


Kindly look into this one for more reference :
http://answers.unity3d.com/questions/49195/trajectory-of-a-projectile-formula-does-anyone-kno.html