We also started implementing different materials for the surfaces of collision.
We tried exploring how to realistically implement collision reaction. In the process, we broke the old code. Now the balls cannot bounce off surfaces at all, they land and get stuck on the plane. Figure 1 shows this behavior.
| Figure 1 |
To aid or exploration of the subject, we came across these videos explaining collision in a context similar to ours:
https://www.youtube.com/watch?v=1IvUNya9Zf0
https://www.youtube.com/watch?v=hz_KCgV_nkw
Our next step will be to adapt and implement what is said in the videos to three dimensions and non-vertical walls.