The mad rush of ballistics

It's week 6 and the first assignment is nearly coming to a close. I haven't been as stressed about this first assignment in a long time, you'd think that it would be trivial to implement a cannon that could fire projectiles in an arc, that's all I'm asking. An arc...

I have never read a complete Wikipedia page 3 or 4 times as thorough for Trajectory of a Projectile, than I have for any of my high school assignments (although Wikipedia was only used for background reading).

My implementation was working to a degree but it became inaccurate when the angle got too high or too low. Which really caused myself a lot of mental pain and physical pain from all the face palming and head banging on my desk. Like, you'd imagine that a simple arc was all that was needed from a height offset instead of just sitting on ground level, even this gif shows a representation of what my outcome was to be...

Image from the Wikipedia article ("Trajectory of a projectile", n.d.).

I decided I'll change where the tower is placed (and how it looked) from the base game we were given to work with. A hole in the middle of the map where missiles will fly out from (once I figure out the whole arc thingy) and rain down destruction of many explosions on the enemies. I could take it a step further of making the enemies different countries that send their army at you and the aim is to defend your county by launching numerous nukes at your foes and decimate them.
And while that sounds cool and all, it would take me about an extra week or so to implement because I'm lazy and sometimes take a few hours to just to make a script do one thing...

So hopefully I can come to a conclusion where I get a game that I'm somewhat happy with and submit that while HOPING that we never get another ballistic brief again, they just seem to be the bane of my existence. Too many things to go wrong and too much maths, I just cannot handle it...


References
Trajectory of a projectile. Wikipedia. Retrieved 13 July 2016, from https://en.wikipedia.org/wiki/Trajectoryofa_projectile

Tom Lynn

Read more posts by this author.

Australia http://rubbix.net