Bouncing Ball
By Matthew John Theodore Dahlgren→Description
This project takes the sphere that we were using in A3, and imagines it as an ellipsoid. When in the aire it is an ellipsoid with equal radii, until the bottom of the sphere touches where the ground is. Then the height of the sphere is compressed and its widths are streched by a the inverted factor of the compression.
We loop throughout throught the given fps, currently set at 60, to get one full bounce of the ball.
I unfortunately ran out of time, but the next steps to this project would have been augmenting A1 as well by creating a watermark that stated my Project name so that I could submit a gif as my showcase.
Acknowledgments
Helped me with ellipsoid calculations: https://stackoverflow.com/questions/76459681/understanding-ray-against-ellipsoid-collision
I had a hard time trying to read things from the JSON so I used the std documentation: https://en.cppreference.com/w/cpp/standard_library.html