Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Hello everyone, I need help. Not in a coding aspect exactly, I am beginning to make a game for my Ib Math Class, which is a lower level calculus class. I need to make a game kind of like apple shooter.
I need to be able to make a dotted line that tracks the players arrow with a quadratic formula(Or other formula), then i need the arrow to be a tangent line that will follow the quadratic function.
I cannot ask for help with the coding(Exact coding) but what i do need help with is a program to help me achieve this. I want to use c# to make it but i something to allow me to make the graphics easier. I know no program to do that or good programs to help me achieve this. Any input or help is welcome.
If you would like me to make a bot for you, go here.
Offline
you could try using html5's canvas element
if you can read this....good for you
Offline
or C#... just do graphics
graphics paste the image
graphics paste the other image
oh, but you wanted animation?
nah, not so bad.
If you just want the equation, uhm... what is it?
honestly, I wanted to make this for EE (for like 1.5 minutes) but couldn't find the right formula for that whole right angle thing
please share cuz I can't google
Offline
HOW THE BOB IS THIS RELATED TO EE? Moved to off-topic.
I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.
Offline
HOW THE BOB IS THIS RELATED TO EE? Moved to off-topic.
honestly, I wanted to make this for EE (for like 1.5 minutes) but couldn't find the right formula for that whole right angle thing
edit: misattributed quotations
Offline
This is how I would do the math side of this. Just a warning, it's a roller coaster.
If you start with the factored form of a concave-down quadratic, you can plug in the roots (0 and max distance, d):
Then consider that the arc has variable height, and to stretch it vertically, you multiply the whole thing by some constant a:
Now, understand that a is not the maximum height. a is a constant that is proportional to the maximum height. To find the actual maximum height, we must find the derivative and set it equal to 0. That will give us the t value that, in conjunction with a, results in the maximum height.
This makes sense: the highest point is exactly halfway between the beginning and end, d/2. Plug that into the original equation to see what a is.
Now let's replace the a in the original with this value. Also, this may be a little confusing, but I'm going to replace h(d/2) with a different a that is equal to the maximum height.
Finally, consider that the arrow does not start from (0, 0) but (0, b) where b is the archer's height. Therefore we need to shift the graph up b.
And to recap:
h(t) is height
a is max height
b is height of person
d is the final distance*
t is time
* Since we shifted the graph up b units, the arrow will go a little further. To accommodate this, solve for d when h(t) = 0 (hardcore Algebra II). That solution will be the ACTUAL final distance (I'll call it "c"). I think you can replace d with (c - d) to fix this problem, but I can't really explain it.
Oh, wait, instead of adding b we need to stretch the entire graph horizontally and shift it left such that the y intercept is b and d and a are unaffected. It's 2:36 AM. I'm going to sleep. You're capable of doing that, right? Okay, great.
Yeah, well, you know that's just like, uh, your opinion, man.
Offline
Pages: 1
[ Started around 1735311072.1204 - Generated in 0.033 seconds, 12 queries executed - Memory usage: 1.46 MiB (Peak: 1.61 MiB) ]