I need help creating a Scorched Earth, Pocket Tanks like engine, where you can set the angle, power and the projectile will be affected by gravity and the wind. Does someone have an example?
r is the resultant velocity that is applied to the object
v is the vertical velocity
u is the horizontal velocity
x is the distance it will travel of a period of t seconds
Assuming you're having the turret rotate 180° on a 2D-plane:
θ is the angle between the turret and the horizontal axis.
r can be equated to be the power you give the projectile
u is how fast it will travel horizontally (always constant)
v is how fast it will travel vertically.
x is the distance the projectile will travel over t seconds
at any point on the path, the vertical velocity = rcosθ + (value of gravity(if travelling upwards, take the negative value))*(time projectile has been travelling)
Wow...Scorched Earth was my first game ever, we had it on an IBM running DOS...it was great, but I remember that the "nuke" took forever for the computer to render..
Well, technically "mathematics" can be used as a singular or plural noun, so either abbreviation is correct. What I always hated was when teachers would refer to "calculus" as "The Calculus". I'm sorry, but any mathematical method that requires you to look up and use formulas in a book does not deserve a "THE".
I like my mathematical methods to be self-sustaining.
Aptennap: If you really want the formulas, send me a DC-mail or just write down here what exactly you want a formula for. I've got an advanced math test so I'm feeling generous with trigonometry (ANYTHING to get me studying math outside the damn book). But I don't have so much online time so it'll take a while.
I think I have an article on applying physics somewhere. Go search for it if you want some ideas.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Muz, could you solve a little problem?
I mean throwing things like in Scorched Earth, but including air damping that is proportional to object's speed.
Solve is of course x(t) and y(t). And there is x0=x(0), y0=y(0), v0=v(0), angle0=angle(0) given.
Hmm.. that article was better than I remember. If only I still understood it
Broo: See my article. That section on Friction, air resistance, etc
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
r is the resultant velocity that is applied to the object
v is the vertical velocity
u is the horizontal velocity
x is the distance it will travel of a period of t seconds
I'll post more later, hungry.
Edited by the Author.
OMG HI-TEK SKIZMATEEKS!!!
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.