Shoot boom and arrow like game kingdom rush [Projectile motion]

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 :

  • Postion of tower.
  • future postion of target use this link :2D tower defense - A bullet to an enemy
  • i have velocity of bullet
  • angle unknown because it depend on distance between tower and target.
    how can i depend on some this data to make bullet move in parabol path

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 much
but 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