In game kingdom rush, archer and gunner shoot bullet in parabol path. but i don’t know use what algorithm kingdom rush use to shoot bullet in parabol path. I have :
Thank you very much!
sorry, can you explain more, and write in english. thank u very much
alpha = arcsin(distance * g / (vel * vel)) * 0.5
dot squid ? what you mean with alpha = arcsin(distance * g / (vel * vel)) * 0.5 ??
It’s the angle you should shoot the arrow with velocity vel to cover the distance. What else it could be?
Dear dot squid, thank u very muchbut i want to know more a bit. after know angle between archer and target, how to shoot arror in parabol path to target!Thank u very much