I'm trying to build a bouncing-ball effect, and a newbie to calculus things...
For the ball-drop, it's straightforward - since there's no initial velocity and acceleration is constant.
For the bounce-up, it seems that what I want to do is integrate the velocity changes over time (since there's some transfer of energy upon impact, and that drives the ball upwards with a sortof fade-off as it fights against gravity?)
This leads me to some questions, one generic and one specific (with a more detailed followup):
Is this correct- that I need to use integration and not just a straight kinematic equation for the bounce-up?
I'm not quite sure about the difference between integration and accumulation. Ideally I would like to have a function
y = f(t)
where various other properties are known such as the initial velocity upon impact, but I do not want to accumulate anything every tick. I.e. it'd be nice to just have a pure function that pre-loads all the info it needs on impact, and then can be run with any time as an input. Can someone please explain the difference between integration and accumulation in light of this?A bit more specifically, it seems like maybe there are rules of integration that allow for solving at any
t
such as the "power rule", but then integrators like Euler/Verlet operate more like accumulators. This is confusing and speaks to the above point.
Thanks!