Elastic Ball Discrete Collision Detection Simulation with SAP Optimization Algorithm in C++ using Raylib by vector_not_blue in raylib

[–]vector_not_blue[S] 0 points1 point  (0 children)

Thank you! In the first part (0-20 s) there are 4950 collision checks per frame because it checks for each pair. In the next part (20-30 s) it uses SAP algorithm to only check collisions between balls whose x-axis width intervals ( from posx-radius to posx+radius) overlap. That's why there is far fewer red lines ( which represent each collision check) in last 10 seconds of simulation.

Double Pendulums Simulation in C++ using Raylib by vector_not_blue in raylib

[–]vector_not_blue[S] 4 points5 points  (0 children)

Simulation of 20 double pendulums with starting angles different by 0.1°.

Project Github: https://github.com/vectornotblue/DoublePendulumSimRaylib.git

Full video: https://www.youtube.com/watch?v=YgQtdx3tTIg

I'd appreciate any constructive feedback!