I have a problem to code the path of a projectile from a gun as it moves forward and upward. This needs to be done in p5.js.
Although the Angry Birds method has been tried by me, I am looking for a more physics derived function involving the sine and cosine of angle of the gun.