Hi MarkBot...thanks for asking.
I did indeed get it to work, but the code isn't as compact as I was hoping for. I ended up having to scale the height variable and then recalculate the quadratic on each iteration of the bounce. If interested here is my code:
Private Sub Bounce2_Click()...
Thanks much for the reply.
No typo on my part, but great catch on yours. The parabola does indeed open downward as the coordinate system is a bit screwy: Y decreases going up and increases going down.
I am programming this using VBA in MS Excel as an experiment more than anything. I would...
To the OP:
Wow! I'm a member and a lurker of a few technical forums around the web and I have to say that your post should be a 'sticky' on all of them. Snarkiness (my spell-checker is telling me that's not a real word - pfft!) runs so rampant on some of them that the "Post a New Thread"...
Hi folks!
I'm writing a program that will graphically move a ball along a series of parabolas to simulate the ball bouncing. I'm using a nested loop to do this.
I used the following quadratic equation to plot the path of the ball:
f(x) = .068x2 -20.4x + 1620
then I shifted it using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.