Calculating each Parabola's width and time know duration (bouncing ball)

84 Views Asked by At

Using the known values below, how do I properly calculate each parabola's total Width and Number of frames (time) it should take to complete the parabola's full (bounce)? Currently each parabola has constant value of 20 frames, which are represented as points in the image below.

I have 4 known variables

  • Height = 20 : max height for the initial parabola
  • Bounces = 6 : total number of bounces
  • Duration = 200 frames : total number of frames (time) to complete cycle
  • Decay = easeOutCubic : determines the decay of the bounces over time.

The image below shows what I have so far in my 3D application. Each parabola has a constant number of 20 points and the height decays over time using the easeOutCubic formula.

enter image description here