I know that this might be complex (in Gdevelop) but I was wondering if anybody figured out how to solve for the angle needed to shoot an arrow towards a target. Basically what I need is how to calculate the angle needed to shoot an arrow from the enemy towards the player given:
- The position of the player (pX, pY)
- The position of the enemy (eX, eY)
- The velocity the projectile is being shot at (750 px/s)
- The force of gravity (9.8 * 100)
All my previous attempts at this have failed (I believe due to Gdevelop’s weird coordinate and rotation system). I hope that someone can succeed in this.