Projectile Movement C++

Started by
9 comments, last by mypel16000 11 years, 2 months ago

I am sorry for this, I was just having a bad day and was very frustrated. Thank you for all your help, I have checked all tutorials and comments and its helped me to move on.

To anyone looking for a solution, the best solution was:

Dlen = sqrt(Dx*Dx + Dy*Dy) //Finding a ratio

Dx/=Dlen; //Creating a velocity figure

Dy/=Dlen //( two )

Bx=Bx+Dx*Bs; // Using the BulletX += Dx(the velocity figure)

By=By+Dy*Bs;

@Madhead, sorry for criticising your tutorial. What was wrong with it was that the closer you got to the plane, the slower the projectile went. This was my problem originally, but I didn't realise it was an intended function of the tutorial.

@Aardvajk. Believe me, two minutes on google did not solve this, but it is true that the advise was correct.

@BeerNutts. Again, was having a bad day. Sorry everyone

This topic is closed to new replies.

Advertisement